Skip to content

Commit

Permalink
fix script error when calling undefined events
Browse files Browse the repository at this point in the history
  • Loading branch information
commy2 committed Jun 13, 2016
1 parent 6e148c9 commit 79857b3
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 79857b3

Please sign in to comment.