From 50fba4545f84b957d5755b3d6ada87653023d0ac Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Tue, 3 Oct 2023 06:08:04 -0500 Subject: [PATCH] Zeus - Fix `bis_fnc_activateaddons` error in moduleCurator (#9459) Close #9445 --- addons/zeus/functions/fnc_bi_moduleCurator.sqf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/zeus/functions/fnc_bi_moduleCurator.sqf b/addons/zeus/functions/fnc_bi_moduleCurator.sqf index 47b67a8cf9..c597955a23 100644 --- a/addons/zeus/functions/fnc_bi_moduleCurator.sqf +++ b/addons/zeus/functions/fnc_bi_moduleCurator.sqf @@ -73,7 +73,8 @@ if (_activated) then { _class = _cfgPatches select _i; if (isclass _class) then {_addons set [count _addons,configname _class];}; }; - _addons call bis_fnc_activateaddons; + // Modified by ace_zeus - bis_fnc_activateaddons will error if time > 0 so only call if at start + if (time <= 0) then { _addons call bis_fnc_activateaddons; }; removeallcuratoraddons _logic; _logic addcuratoraddons _addons; }; @@ -249,7 +250,8 @@ if (_activated) then { } foreach _paramAddons; }; } foreach (synchronizedobjects _logic); - _addons call bis_fnc_activateaddons; + // Modified by ace_zeus - bis_fnc_activateaddons will error if time > 0 so only call if at start + if (time <= 0) then { _addons call bis_fnc_activateaddons; }; }; //--- Player