Casings - Fix settings (#10110)

This commit is contained in:
johnb432 2024-07-07 16:41:10 +02:00 committed by GitHub
parent edc7e9af3e
commit f65138f65e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,12 @@
#include "script_component.hpp" #include "script_component.hpp"
if (!hasInterface || !GVAR(enabled)) exitWith {}; if (!hasInterface) exitWith {};
GVAR(cachedCasings) = createHashMap; ["CBA_settingsInitialized", {
GVAR(casings) = []; if (!GVAR(enabled)) exitWith {};
["CAManBase", "FiredMan", LINKFUNC(createCasing)] call CBA_fnc_addClassEventHandler;
GVAR(cachedCasings) = createHashMap;
GVAR(casings) = [];
["CAManBase", "FiredMan", LINKFUNC(createCasing)] call CBA_fnc_addClassEventHandler;
}] call CBA_fnc_addEventHandler;