Just moved Lua_HookVoid really to the end of the function.

This commit is contained in:
Ace Lite 2024-03-30 19:06:52 +01:00
parent 0a1662a893
commit 4147569e10

View file

@ -8345,8 +8345,6 @@ static boolean P_LoadAddon(UINT16 numlumps)
if (!mapsadded)
CONS_Printf(M_GetText("No maps added\n"));
LUA_HookVoid(HOOK(AddonLoaded));
R_LoadSpriteInfoLumps(wadnum, numlumps);
#ifdef HWRENDER
@ -8368,6 +8366,8 @@ static boolean P_LoadAddon(UINT16 numlumps)
SendNetXCmd(XD_EXITLEVEL, NULL, 0);
}
LUA_HookVoid(HOOK(AddonLoaded));
return true;
}