Pre-load again on mission load (save game)

This commit is contained in:
PabstMirror 2016-02-10 11:50:30 -06:00
parent e1b83b8172
commit ff4ba98e68

View File

@ -144,6 +144,16 @@ private _fixStatic = {
};
["StaticWeapon", "init", _fixStatic] call CBA_fnc_addClassEventHandler;
["Car", "init", _fixStatic] call CBA_fnc_addClassEventHandler;
addMissionEventHandler ["Loaded",{
{
TRACE_1("starting preload (save load)",_x);
[{
1 preloadObject (_this select 0);
}, {
TRACE_1("preload done",_this);
}, [_x]] call EFUNC(common,waitUntilAndExecute);
} forEach GVAR(fixedStatics);
}];
ADDON = true;