summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-22 09:18:01 +0000
committerrubidium <rubidium@openttd.org>2010-08-22 09:18:01 +0000
commit56a263070f3afb6dfea3bdc5113874f8db66b23a (patch)
tree77bac298035e5812105822e93d8772de2aa8f050 /src/saveload
parentfba7ce392d753a1646919eebd7a277f87262e0e5 (diff)
downloadopenttd-56a263070f3afb6dfea3bdc5113874f8db66b23a.tar.xz
(svn r20591) -Codechange: make sure _date_fract is set when SetDate is called. Some places wouldn't reset _date_fract correctly at all
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/afterload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index f9e229485..bce5e0451 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -571,7 +571,7 @@ bool AfterLoadGame()
/* Update current year
* must be done before loading sprites as some newgrfs check it */
- SetDate(_date);
+ SetDate(_date, _date_fract);
/* Force dynamic engines off when loading older savegames */
if (CheckSavegameVersion(95)) _settings_game.vehicle.dynamic_engines = 0;