Skip to content

Commit a4ce61e

Browse files
committed
Add null check to stop rpt spam
Thx to mmrsz
1 parent 3a2a882 commit a4ce61e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SQF/dayz_server/system/scheduler/sched_lootpiles.sqf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ sched_lootpiles = {
9595
//diag_log format ["%1: lootpiles foreach loot to del from:%2 to:%3 old:%4 total:%5", __FILE__, sched_lp_var1, _imax, sched_lp_delqty, sched_lp_lootTotal ];
9696
for "_i" from sched_lp_var1 to _imax-1 do {
9797
_x = sched_lp_list select _i;
98-
deleteVehicle _x;
98+
if (!isNull _x) then {
99+
deleteVehicle _x;
100+
};
99101
};
100102
sched_lp_var1 = _imax;
101103
if (_imax == sched_lp_delqty) then {

0 commit comments

Comments
 (0)