(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.
This commit is contained in:
Darkvater
2005-11-07 13:30:43 +00:00
parent d91a4df8d7
commit 5f281a25f2
2 changed files with 12 additions and 8 deletions

View File

@@ -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