diff --git a/NorthstarDLL/squirrel/squirrelautobind.h b/NorthstarDLL/squirrel/squirrelautobind.h index 865479a14..19ecb8084 100644 --- a/NorthstarDLL/squirrel/squirrelautobind.h +++ b/NorthstarDLL/squirrel/squirrelautobind.h @@ -21,16 +21,16 @@ class __squirrelautobind; __squirrelautobind CONCAT2(__squirrelautobind, __LINE__)( \ []() \ { \ - if constexpr (runOnContext & ScriptContext::UI) \ + if constexpr ((runOnContext)&ScriptContext::UI) \ g_pSquirrel->AddFuncRegistration( \ returnType, __STR(funcName), argTypes, helpText, CONCAT2(Script_, funcName) < ScriptContext::UI >); \ - if constexpr (runOnContext & ScriptContext::CLIENT) \ + if constexpr ((runOnContext)&ScriptContext::CLIENT) \ g_pSquirrel->AddFuncRegistration( \ returnType, __STR(funcName), argTypes, helpText, CONCAT2(Script_, funcName) < ScriptContext::CLIENT >); \ }, \ []() \ { \ - if constexpr (runOnContext & ScriptContext::SERVER) \ + if constexpr ((runOnContext)&ScriptContext::SERVER) \ g_pSquirrel->AddFuncRegistration( \ returnType, __STR(funcName), argTypes, helpText, CONCAT2(Script_, funcName) < ScriptContext::SERVER >); \ }); \ @@ -44,15 +44,15 @@ class __squirrelautobind; __squirrelautobind CONCAT2(__squirrelautobind, __LINE__)( \ []() \ { \ - if constexpr (runOnContext & ScriptContext::UI) \ + if constexpr ((runOnContext)&ScriptContext::UI) \ g_pSquirrel->AddFuncOverride(__STR(funcName), CONCAT2(Script_, funcName) < ScriptContext::UI >); \ - if constexpr (runOnContext & ScriptContext::CLIENT) \ + if constexpr ((runOnContext)&ScriptContext::CLIENT) \ g_pSquirrel->AddFuncOverride( \ __STR(funcName), CONCAT2(Script_, funcName) < ScriptContext::CLIENT >); \ }, \ []() \ { \ - if constexpr (runOnContext & ScriptContext::SERVER) \ + if constexpr ((runOnContext)&ScriptContext::SERVER) \ g_pSquirrel->AddFuncOverride( \ __STR(funcName), CONCAT2(Script_, funcName) < ScriptContext::SERVER >); \ }); \