(svn r15075) -Fix: store _next_competitor_start as uint32, else it might overflow for values > 2.4 years

This commit is contained in:
truebrain 2009-01-13 21:32:47 +00:00
parent d5a599f5e5
commit e05d2ef453
2 changed files with 3 additions and 2 deletions

View File

@ -70,7 +70,8 @@ static const SaveLoadGlobVarList _date_desc[] = {
SLEG_CONDVAR(_cur_town_ctr, SLE_FILE_U8 | SLE_VAR_U32, 0, 9),
SLEG_CONDVAR(_cur_town_ctr, SLE_UINT32, 10, SL_MAX_VERSION),
SLEG_VAR(_cur_company_tick_index, SLE_FILE_U8 | SLE_VAR_U32),
SLEG_VAR(_next_competitor_start, SLE_FILE_U16 | SLE_VAR_U32),
SLEG_CONDVAR(_next_competitor_start, SLE_FILE_U16 | SLE_VAR_U32, 0, 108),
SLEG_CONDVAR(_next_competitor_start, SLE_UINT32, 109, SL_MAX_VERSION),
SLEG_VAR(_trees_tick_ctr, SLE_UINT8),
SLEG_CONDVAR(_pause_game, SLE_UINT8, 4, SL_MAX_VERSION),
SLEG_CONDVAR(_cur_town_iter, SLE_UINT32, 11, SL_MAX_VERSION),

View File

@ -42,7 +42,7 @@
#include <list>
extern const uint16 SAVEGAME_VERSION = 108;
extern const uint16 SAVEGAME_VERSION = 109;
SavegameType _savegame_type; ///< type of savegame we are loading