Skip to content

Commit

Permalink
Merge pull request #221 from CBATeam/classeventhandlersinvehicles
Browse files Browse the repository at this point in the history
fix addClassEventHandlers not working for units that spawn inside vehicles
  • Loading branch information
Killswitch00 committed Dec 17, 2015
2 parents e578958 + b069458 commit 091f4e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions addons/class_eventhandlers/fnc_init_loop.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ SCRIPT(init);
GVAR(entities) = [];

[{
private _entities = entities "";
private _entities = entities "" + allUnits;
if !(_entities isEqualTo GVAR(entities)) then {

GVAR(entities) = _entities;

// iterate through all objects and add eventhandlers to all new ones
Expand Down

0 comments on commit 091f4e1

Please sign in to comment.