diff --git a/src/p_setup.c b/src/p_setup.c index 8acdeca49..4a99fef18 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -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; }