Skip to content

Commit

Permalink
Merge pull request #1390 from BaerMitUmlaut/fix-statemachine-conditio…
Browse files Browse the repository at this point in the history
…n-var

Fix statemachine conditions using global variables
  • Loading branch information
PabstMirror committed Nov 17, 2020
2 parents 2305b05 + 22fd940 commit deb7d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/statemachine/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#define ONSTATEENTERED(var) (var + "_onStateEntered")
#define ONSTATELEAVING(var) (var + "_onStateLeaving")
#define GET_FUNCTION(var,cfg) private var = getText (cfg); \
if (isNil var) then { \
if (isNil var || {!((missionNamespace getVariable var) isEqualType {})}) then { \
var = compile var; \
} else { \
var = missionNamespace getVariable var;\
Expand Down

0 comments on commit deb7d2b

Please sign in to comment.