mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-22 01:01:45 +00:00
Merge branch 'gamedata-check' into 'next'
Fix G_SaveGameData crash if quit early See merge request STJr/SRB2!2313
This commit is contained in:
commit
f09dd25bbb
1 changed files with 3 additions and 0 deletions
|
@ -4621,6 +4621,9 @@ void G_SaveGameData(gamedata_t *data)
|
|||
|
||||
INT32 curmare;
|
||||
|
||||
if (!data)
|
||||
return; // data struct not valid
|
||||
|
||||
if (!data->loaded)
|
||||
return; // If never loaded (-nodata), don't save
|
||||
|
||||
|
|
Loading…
Reference in a new issue