Skip to content

Commit

Permalink
Merge pull request #378 from CBATeam/fix_calling_undefined_events
Browse files Browse the repository at this point in the history
fix script error when calling undefined events
  • Loading branch information
Killswitch00 committed Jun 14, 2016
2 parents 6e148c9 + 79857b3 commit b5da4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/events/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
if !(isNil "_x") then {\
args call _x;\
};\
} forEach +(GVAR(eventNamespace) getVariable event) // copy array so events can be removed while iterating safely
} forEach +([GVAR(eventNamespace) getVariable event] param [0, []]) // copy array so events can be removed while iterating safely

#define GETOBJ(obj) (if (obj isEqualType grpNull) then {leader obj} else {obj})

Expand Down

0 comments on commit b5da4cc

Please sign in to comment.