Check for `<null>` values in vehicle to spawn array

This commit is contained in:
Wyqer 2019-07-25 23:14:29 +02:00
parent afa8185d5b
commit f35fea24c3
No known key found for this signature in database
GPG Key ID: D7E2F8BD7F1E48FA
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ if ((!(_sector in blufor_sectors)) && (([getmarkerpos _sector, [_opforcount] cal
_building_ai_max = 0;
};
_vehtospawn = _vehtospawn select {_x isEqualType ""};
_vehtospawn = _vehtospawn select {!(isNil "_x")};
if (KP_liberation_sectorspawn_debug > 0) then {private _text = format ["[KP LIBERATION] [SECTORSPAWN] Sector %1 (%2) - manage_one_sector calculated -> _infsquad: %3 - _squad1: %4 - _squad2: %5 - _squad3: %6 - _squad4: %7 - _vehtospawn: %8 - _building_ai_max: %9", (markerText _sector), _sector, _infsquad, (count _squad1), (count _squad2), (count _squad3), (count _squad4), (count _vehtospawn), _building_ai_max];_text remoteExec ["diag_log",2];};