Change count back to forEach

Can not nest count loops inside other count loops:
https://community.bistudio.com/wiki/Code_Optimisation#forEach_vs_count
This commit is contained in:
ebaydayz
2014-07-31 13:41:02 -04:00
parent 573bacdfc3
commit 445556ff12

View File

@@ -137,7 +137,7 @@ if(isServer)then{
};
};
sleep 0.001;
} count _missonLights;
} forEach _missonLights;
if (_delQtyLights > 0) then {
_qty = count _missonLights;
diag_log (format["CLEANUP: Deleted %1 Lights out of %2",_delQtyLights,_qty]);