Permalink
Browse files

Fix a bug in the game saving code that caused some games (e.g. Kings …

…Quest I) to crash on 64bit upon loading.
  • Loading branch information...
1 parent 15039fe commit 205c56d693d903516b7b21beb454251e9489aabf @tobihan tobihan committed Sep 21, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 Engine/ac.cpp
View
@@ -23580,6 +23580,8 @@ void save_game_data (FILE *ooo, block screenshot) {
if (roomstat->tsdatasize>0)
fwrite(&roomstat->tsdata[0], 1, roomstat->tsdatasize, ooo);
}
+ else
+ fputc (0, ooo);
}
else
fputc (0, ooo);

0 comments on commit 205c56d

Please sign in to comment.