diff options
author | Darkvater <darkvater@openttd.org> | 2005-11-07 13:30:43 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-11-07 13:30:43 +0000 |
commit | f816b74536834257718b08f6f228bc5681844350 (patch) | |
tree | 530103373cf70d432ab53573d595bde521271521 /player.h | |
parent | 8bcfa23d29b55b7a1b5e856b1e72c74e5cd526e9 (diff) | |
download | openttd-f816b74536834257718b08f6f228bc5681844350.tar.xz |
(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.
Diffstat (limited to 'player.h')
-rw-r--r-- | player.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |