Exit if we try to load corrupt data (although we shouldn't really get this far).

This commit is contained in:
Steve 2018-05-01 18:17:16 +01:00
parent 220525d6f8
commit 693ed5f032
1 changed files with 2 additions and 1 deletions

View File

@ -343,7 +343,8 @@ void loadGame(int slot)
}
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);