mirror of
https://github.com/id-Software/DOOM-iOS.git
synced 2025-05-31 01:01:04 +00:00
Prevent save game crash
This commit is contained in:
parent
5f0672a5aa
commit
c1d08d3744
1 changed files with 5 additions and 2 deletions
|
@ -1617,8 +1617,11 @@ void G_DoLoadGame(void)
|
||||||
gameaction = ga_nothing;
|
gameaction = ga_nothing;
|
||||||
|
|
||||||
length = M_ReadFile(name, &savebuffer);
|
length = M_ReadFile(name, &savebuffer);
|
||||||
if (length<=0)
|
if (length<=0) {
|
||||||
I_Error("Couldn't read file %s: %s", name, "(Unknown Error)");
|
//I_Error("Couldn't read file %s: %s", name, "(Unknown Error)");
|
||||||
|
doom_printf("No save game found.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
save_p = savebuffer + SAVESTRINGSIZE;
|
save_p = savebuffer + SAVESTRINGSIZE;
|
||||||
|
|
||||||
// CPhipps - read the description field, compare with supported ones
|
// CPhipps - read the description field, compare with supported ones
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue