Skip to content

Commit

Permalink
Micro optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
mharis001 committed Nov 13, 2024
1 parent 9ef7e95 commit 5e6348e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/editor/XEH_preStart.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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 (
Expand Down

0 comments on commit 5e6348e

Please sign in to comment.