mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
Fix crash when saving the game.
This commit is contained in:
parent
13736f1fd3
commit
df3db3b821
1 changed files with 3 additions and 0 deletions
|
@ -1134,6 +1134,8 @@ void Host_Savegame_f (void)
|
|||
return;
|
||||
}
|
||||
|
||||
PR_SwitchQCVM(&sv.qcvm);
|
||||
|
||||
fprintf (f, "%i\n", SAVEGAME_VERSION);
|
||||
Host_SavegameComment (comment);
|
||||
fprintf (f, "%s\n", comment);
|
||||
|
@ -1193,6 +1195,7 @@ void Host_Savegame_f (void)
|
|||
|
||||
fclose (f);
|
||||
Con_Printf ("done.\n");
|
||||
PR_SwitchQCVM(NULL);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue