Changeset - r10742:299e6d78c5f4
[Not reviewed]
master
0 2 0
truebrain - 16 years ago 2009-01-13 21:32:47
truebrain@openttd.org
(svn r15075) -Fix: store _next_competitor_start as uint32, else it might overflow for values > 2.4 years
2 files changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/saveload/misc_sl.cpp
Show inline comments
 
@@ -70,7 +70,8 @@ static const SaveLoadGlobVarList _date_d
 
	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),
src/saveload/saveload.cpp
Show inline comments
 
@@ -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
 

	
0 comments (0 inline, 0 general)