Merge branch 'dev' into lighting-engine-cpp

This commit is contained in:
Agent X 2026-01-26 18:59:06 -05:00
commit d8b6aa7d38

View file

@ -987,6 +987,11 @@ static s32 bhv_cmd_call_native_ext(void) {
}
const char *funcStr = dynos_behavior_get_token(behavior, BHV_CMD_GET_U32(1));
if (!funcStr) {
LOG_LUA("Could not retrieve function name from behavior command. Do you have an unclosed behavior script?");
gCurBhvCommand += 2;
return BHV_PROC_CONTINUE;
}
gSmLuaConvertSuccess = true;
LuaFunction funcRef = smlua_get_function_mod_variable(modIndex, funcStr);