Skip to content

Commit

Permalink
periodically clean out nulls from localCars array
Browse files Browse the repository at this point in the history
  • Loading branch information
Fusselwurm committed Aug 7, 2022
1 parent 0ec5cf6 commit 5609446
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/cars/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@
params ["_veh"];
GVAR(localCars) = GVAR(localCars) - [_veh];
}] call CBA_fnc_addEventHandler;
GVAR(pfh_groomCarsArray) = [{
GVAR(localCars) = GVAR(localCars) select {!(isNull _x)};
}, 5] call CBA_fnc_addPerFrameHandler;

};
}] call CBA_fnc_addEventHandler;

0 comments on commit 5609446

Please sign in to comment.