mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
G_SaveGameData: check for NULL
This fixes I_Error if used before M_NewDataStruct is called.
This commit is contained in:
parent
87d8945f97
commit
d79e53a0e3
1 changed files with 1 additions and 1 deletions
|
|
@ -4582,7 +4582,7 @@ void G_SaveGameData(void)
|
|||
UINT8 btemp;
|
||||
savebuffer_t save = {0};
|
||||
|
||||
if (!gamedata->loaded)
|
||||
if (gamedata == NULL || !gamedata->loaded)
|
||||
return; // If never loaded (-nodata), don't save
|
||||
|
||||
if (usedCheats)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue