SV_StopServer: Use G_SetGamestate instead of a direct write

An apparent oversight identified while working on the previous commit.
This commit is contained in:
toaster authored and Alug committed 2025-11-01 03:01:17 +01:00
1 parent 36c43d89e6
commit e45c72f525
1 file changed
+3 -1
+3 -1
View File
@@ -4649,7 +4649,9 @@ void SV_StopServer(void)
Y_EndIntermission();
if (gamestate == GS_VOTING)
Y_EndVote();
gamestate = wipegamestate = GS_NULL;
G_SetGamestate(GS_NULL);
wipegamestate = GS_NULL;
for (i = 0; i < MAXSPLITSCREENPLAYERS; i++)
localtextcmd[i][0] = 0;