diff options
author | peter1138 <peter1138@openttd.org> | 2008-03-18 23:01:33 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-03-18 23:01:33 +0000 |
commit | e46945a2548c2a46417663c4930ceca54269d88d (patch) | |
tree | a5465c8dfe9166ca6dd04c108c43946a81d7bfec /src | |
parent | 457acecda5d33bedfe5c2c7ad951fa50e9a54711 (diff) | |
download | openttd-e46945a2548c2a46417663c4930ceca54269d88d.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.cpp | 2 |
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; } |