From d27ab363a7c42f44be9d8d2e6fea96b10ee799d7 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 18 Mar 2008 23:01:33 +0000 Subject: (svn r12383) -Fix [FS#1860]: Check return of AfterLoadGame for success or failure when loading TTD games. --- src/saveload.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/saveload.cpp b/src/saveload.cpp index 68659767b..bf3ed3a23 100644 --- a/src/saveload.cpp +++ b/src/saveload.cpp @@ -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; } -- cgit v1.2.3-70-g09d2