From de91b61fcc0683c5668876d2b4e7cc221c8b9d36 Mon Sep 17 00:00:00 2001 From: IndigoFox Date: Tue, 18 Jun 2024 19:05:54 -0700 Subject: [PATCH] some updates --- framework/vehicleFlags/functions/fn_compileFlagAction.sqf | 2 ++ .../vehicleFlags/functions/fn_compileFlagCategoryAction.sqf | 2 ++ .../vehicleFlags/functions/fn_getActionsFlagCategories.sqf | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/framework/vehicleFlags/functions/fn_compileFlagAction.sqf b/framework/vehicleFlags/functions/fn_compileFlagAction.sqf index 1736185..b78fb2b 100644 --- a/framework/vehicleFlags/functions/fn_compileFlagAction.sqf +++ b/framework/vehicleFlags/functions/fn_compileFlagAction.sqf @@ -1,3 +1,5 @@ +#include "..\script_component.hpp" + params ["_target", "_player", "_params", "_flagOptionCfg"]; _params params ["_rootActionID", "_flagCategoryActionID", "_flagSubclassesCfgs"]; diff --git a/framework/vehicleFlags/functions/fn_compileFlagCategoryAction.sqf b/framework/vehicleFlags/functions/fn_compileFlagCategoryAction.sqf index fd9dec4..1df4ac5 100644 --- a/framework/vehicleFlags/functions/fn_compileFlagCategoryAction.sqf +++ b/framework/vehicleFlags/functions/fn_compileFlagCategoryAction.sqf @@ -1,3 +1,5 @@ +#include "..\script_component.hpp" + // diag_log format ["NewFlagCategory: %1 %2", _flagCategory, _flagOptions]; params ["_rootActionID", "_flagCategoryCfg"]; diff --git a/framework/vehicleFlags/functions/fn_getActionsFlagCategories.sqf b/framework/vehicleFlags/functions/fn_getActionsFlagCategories.sqf index 9ee5efe..41c74d4 100644 --- a/framework/vehicleFlags/functions/fn_getActionsFlagCategories.sqf +++ b/framework/vehicleFlags/functions/fn_getActionsFlagCategories.sqf @@ -5,6 +5,7 @@ 0: STRING - Parent action ID 1: ARRAY - Flag category configs */ +#include "..\script_component.hpp" params ["_rootActionID", "_flagCategoryCfgs"]; @@ -17,7 +18,7 @@ private _allCategoryActions = []; _flagCategoryActions pushBack ([_rootActionID, _x] call FUNC(compileFlagCategoryAction)); } forEach (_x call BIS_fnc_returnChildren); } else { - _flagCategoryActions pushBack (_x call FUNC(compileFlagCategoryAction)); + _flagCategoryActions pushBack ([_rootActionID, _x] call FUNC(compileFlagCategoryAction)); }; // add category to all category actions array {