From 5e6348eac38007addd0141ecab3401b3bb74adfe Mon Sep 17 00:00:00 2001 From: mharis001 Date: Wed, 13 Nov 2024 08:30:45 -0500 Subject: [PATCH] Micro optimization --- addons/editor/XEH_preStart.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/editor/XEH_preStart.sqf b/addons/editor/XEH_preStart.sqf index c4373a963..2350b3182 100644 --- a/addons/editor/XEH_preStart.sqf +++ b/addons/editor/XEH_preStart.sqf @@ -3,7 +3,8 @@ #include "XEH_PREP.hpp" // Get faction names for west, east, independent, and civilian sides -private _factionNames = configProperties [configFile >> "CfgFactionClasses", "isClass _x"] select { +private _cfgFactionClasses = configFile >> "CfgFactionClasses"; +private _factionNames = configProperties [_cfgFactionClasses, "isClass _x"] select { getNumber (_x >> "side") in [0, 1, 2, 3] } apply { getText (_x >> "displayName") @@ -13,7 +14,6 @@ private _factionNames = configProperties [configFile >> "CfgFactionClasses", "is // the empty tree and, if we delete the entire faction node, then there is no way to place them. private _forcedEmptyFactions = []; private _forcedEmptyObjects = createHashMap; -private _cfgFactionClasses = configFile >> "CfgFactionClasses"; { if (