Exit if we try to load corrupt data (although we shouldn't really get this far).
This commit is contained in:
parent
220525d6f8
commit
693ed5f032
|
@ -343,7 +343,8 @@ void loadGame(int slot)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf("Corrupt save file\n");
|
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_ERROR, "Corrupt save file: %s", filename);
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
free(text);
|
free(text);
|
||||||
|
|
Loading…
Reference in New Issue