Patch highlighted mod on crash screen

This commit is contained in:
Agent X 2024-12-27 17:06:55 -05:00
parent f8f0b376f2
commit 261dfe0d76
2 changed files with 2 additions and 1 deletions

View file

@ -42,6 +42,7 @@ int smlua_call_hook(lua_State* L, int nargs, int nresults, int errfunc, struct M
struct Mod* prev = gLuaActiveMod;
gLuaActiveMod = activeMod;
gLuaLastHookMod = activeMod;
gPcDebug.lastModRun = activeMod;
lua_profiler_start_counter(activeMod);

View file

@ -146,7 +146,7 @@ static void smlua_sync_table_call_hook(int syncTableIndex, int keyIndex, int pre
struct Mod* prev = gLuaActiveMod;
gLuaActiveMod = mod;
gLuaLastHookMod = mod;
gPcDebug.lastModRun = gLuaActiveMod;
gPcDebug.lastModRun = mod;
if (0 != smlua_pcall(L, 3, 0, 0)) {
LOG_LUA_LINE("Failed to call the hook_on_changed callback");
}