diff --git a/src/ui/FrameScript.cpp b/src/ui/FrameScript.cpp index 5afa30d..3debce6 100644 --- a/src/ui/FrameScript.cpp +++ b/src/ui/FrameScript.cpp @@ -247,7 +247,7 @@ void FrameScript_Execute(int32_t function, FrameScript_Object* objectThis, int32 static char argName[] = { 'a', 'r', 'g', '0', 0, 0, 0 }; - int32_t firstArg = event != 0; + int32_t firstArg = event ? 1 : 0; int32_t argId = 0; if (firstArg < argCount) {