- Duke: Repair crash when calling OnEvent(EVENT_ENTERLEVEL).

This commit is contained in:
Mitchell Richters 2023-10-06 15:16:02 +11:00
parent b7702afacf
commit 83d3784007

View file

@ -1133,7 +1133,10 @@ void enterlevel(MapRecord *mi, int gamemode)
ud.ffire = ud.m_ffire;
lastlevel = 0;
OnEvent(EVENT_ENTERLEVEL);
for (int i = connecthead; i >= 0; i = connectpoint2[i])
{
OnEvent(EVENT_ENTERLEVEL, i);
}
// Stop all sounds
FX_StopAllSounds();