(svn r12383) -Fix [FS#1860]: Check return of AfterLoadGame for success or failure when loading TTD games.

This commit is contained in:
peter1138 2008-03-18 23:01:33 +00:00
parent faa1483ee6
commit d27ab363a7
1 changed files with 1 additions and 1 deletions

View File

@ -1600,7 +1600,7 @@ SaveOrLoadResult SaveOrLoad(const char *filename, int mode, Subdirectory sb)
InitializeGame(IG_DATE_RESET, 256, 256); // set a mapsize of 256x256 for TTDPatch games or it might get confused
if (!LoadOldSaveGame(filename)) return SL_REINIT;
_sl_version = 0;
AfterLoadGame();
if (!AfterLoadGame()) return SL_REINIT;
return SL_OK;
}