diff options
author | rubidium <rubidium@openttd.org> | 2010-08-22 09:21:56 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-22 09:21:56 +0000 |
commit | 29e02728e112d579256dc414bdef5be0325e1a25 (patch) | |
tree | 675c5dda67e7c183ce8f53fdfd6c1a90c0016efc /src/date.cpp | |
parent | 56a263070f3afb6dfea3bdc5113874f8db66b23a (diff) | |
download | openttd-29e02728e112d579256dc414bdef5be0325e1a25.tar.xz |
(svn r20592) -Fix (r2041): no (proper) savegame conversion was done when _date_fract got a new value range
Diffstat (limited to 'src/date.cpp')
-rw-r--r-- | src/date.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/date.cpp b/src/date.cpp index bc3c1d106..4b8111b6a 100644 --- a/src/date.cpp +++ b/src/date.cpp @@ -34,6 +34,8 @@ uint16 _tick_counter; ///< Ever incrementing (and sometimes wrapping) tick coun */ void SetDate(Date date, DateFract fract) { + assert(fract < DAY_TICKS); + YearMonthDay ymd; _date = date; |