init playerspawnarray var

since we are using an gvar array here edits to it externally should not
require redefining local var for use in other events.
This commit is contained in:
vbawol 2017-09-27 11:10:20 -05:00
parent 7459f9d3a0
commit 74aecd3849

View File

@ -174,6 +174,7 @@ EPOCH_spawnIndex = _spawnIndex;
EPOCH_spawnLimits = _spawnLimits;
// default data if mismatch
_playerSpawnArray = missionNamespace getVariable [_playerSpawnArrayKey, _playerSpawnArrayDefault];
if !(_playerSpawnArray isEqualTypeParams _spawnIndex) then{
_playerSpawnArray = [];
{ _playerSpawnArray pushBack 0 } forEach _spawnIndex;