mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-02-03 20:25:58 +00:00
Fix custom bhv crash
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
This commit is contained in:
parent
d53338f2b8
commit
b82ee2453e
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue