summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-03-18 23:01:33 +0000
committerpeter1138 <peter1138@openttd.org>2008-03-18 23:01:33 +0000
commitd27ab363a7c42f44be9d8d2e6fea96b10ee799d7 (patch)
treea5465c8dfe9166ca6dd04c108c43946a81d7bfec /src
parentfaa1483ee658bde5f5939948cefb5d4f6eeccbaa (diff)
downloadopenttd-d27ab363a7c42f44be9d8d2e6fea96b10ee799d7.tar.xz
(svn r12383) -Fix [FS#1860]: Check return of AfterLoadGame for success or failure when loading TTD games.
Diffstat (limited to 'src')
-rw-r--r--src/saveload.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}