Common - Fix undefined variable (#8872)

Moved ace_common_isModLoadedCache from postinit to preinit. The hash object can be used before post init which then produces errors.
This commit is contained in:
diwako 2022-04-10 22:27:10 +02:00 committed by GitHub
parent dd07b0fa30
commit 51b703a746
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -108,9 +108,6 @@
_object setMass _mass;
}] call CBA_fnc_addEventHandler;
// Cache for FUNC(isModLoaded)
GVAR(isModLoadedCache) = createHashMap;
//Add a fix for BIS's zeus remoteControl module not reseting variables on DC when RC a unit
//This variable is used for isPlayer checks
if (isServer) then {

View File

@ -11,6 +11,9 @@ GVAR(syncedEvents) = createHashMap;
GVAR(showHudHash) = createHashMap;
GVAR(vehicleIconCache) = createHashMap; // for getVehicleIcon
// Cache for FUNC(isModLoaded)
GVAR(isModLoadedCache) = createHashMap;
GVAR(settingsInitFinished) = false;
GVAR(runAtSettingsInitialized) = [];