Skip to content

Commit

Permalink
Same nil check for civs
Browse files Browse the repository at this point in the history
  • Loading branch information
theace0296 committed Dec 30, 2021
1 parent 5f8a0da commit 9532776
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RandFramework/Server/units/fn_spawnCivs.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ while {_iCount <= _unitCount} do
_sCivClass = selectRandom sCivilian;
};
private _newCiv = [_sideCivGroup, _sCivClass, _wayPosInit, [], 0, "NONE"] call TRGM_GLOBAL_fnc_createUnit;
_newCiv call compile _sInitString;
if !(isNil "_newCiv") then {
_newCiv call compile _sInitString;
};
};
};

Expand Down

0 comments on commit 9532776

Please sign in to comment.