Skip to content

Commit

Permalink
Casings - Fix settings (#10110)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb432 committed Jul 7, 2024
1 parent edc7e9a commit f65138f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions addons/casings/XEH_postInit.sqf
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#include "script_component.hpp"

if (!hasInterface || !GVAR(enabled)) exitWith {};
if (!hasInterface) exitWith {};

GVAR(cachedCasings) = createHashMap;
GVAR(casings) = [];
["CAManBase", "FiredMan", LINKFUNC(createCasing)] call CBA_fnc_addClassEventHandler;
["CBA_settingsInitialized", {
if (!GVAR(enabled)) exitWith {};

GVAR(cachedCasings) = createHashMap;
GVAR(casings) = [];

["CAManBase", "FiredMan", LINKFUNC(createCasing)] call CBA_fnc_addClassEventHandler;
}] call CBA_fnc_addEventHandler;

0 comments on commit f65138f

Please sign in to comment.