From 5f281a25f266084b10296a176841d8000453eb8c Mon Sep 17 00:00:00 2001 From: Darkvater Date: Mon, 7 Nov 2005 13:30:43 +0000 Subject: (svn r3151) - Fix: showing the highscore might crash the game with an invalid string message in the case when a highscore file was used before certain strings were added. - Codechange: protect _endgame_perf_titles from out-of-bounds access. --- player.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'player.h') diff --git a/player.h b/player.h index 8dc96b14d..b00a0f9e3 100644 --- a/player.h +++ b/player.h @@ -252,8 +252,8 @@ static inline RailType GetBestRailtype(const Player* p) typedef struct HighScore { char company[100]; - StringID title; - uint16 score; + StringID title; // NO_SAVE, has troubles with changing string-numbers. + uint16 score; // do NOT change type, will break hs.dat } HighScore; VARDEF HighScore _highscore_table[5][5]; // 4 difficulty-settings (+ network); top 5 -- cgit v1.2.3-54-g00ecf