Rearrange ShutdownGame() to prevent network based crash

This prevents a crash that occurs when trying to exit the game while a connection attempt is being made (such as closing the game while it's in the middle of trying to connect to GrooveStats).
This commit is contained in:
sukibaby
2024-12-16 07:29:30 -08:00
committed by teejusb
parent ff8e018fbf
commit 29d6531a50
+1 -1
View File
@@ -298,10 +298,10 @@ void ShutdownGame()
LIGHTSMAN->TurnOffAllLights();
}
RageUtil::SafeDelete( NETWORK );
RageUtil::SafeDelete( SCREENMAN );
RageUtil::SafeDelete( STATSMAN );
RageUtil::SafeDelete( MESSAGEMAN );
RageUtil::SafeDelete( NETWORK );
/* Delete INPUTMAN before the other INPUTFILTER handlers, or an input
* driver may try to send a message to INPUTFILTER after we delete it. */
RageUtil::SafeDelete( INPUTMAN );