diff options
author | Darkvater <darkvater@openttd.org> | 2005-11-07 17:31:21 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-11-07 17:31:21 +0000 |
commit | 723e789b2f1ac1d6f8eaa122d9626f41595c51cf (patch) | |
tree | e60074d0dad1955695b09e35d5644f9d2ee2e786 | |
parent | 947fc8a8ec7eec13b0c405b4019c068706b5f3cf (diff) | |
download | openttd-723e789b2f1ac1d6f8eaa122d9626f41595c51cf.tar.xz |
(svn r3154) - Fix: Last value of an array is lengthof-1; let's keep this at a typo, shall we :P
-rw-r--r-- | players.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -919,7 +919,7 @@ static const StringID _endgame_perf_titles[16] = { StringID EndGameGetPerformanceTitleFromValue(uint value) { value = minu(value, 1000) >> 6; - if (value >= lengthof(_endgame_perf_titles)) value = lengthof(_endgame_perf_titles); + if (value >= lengthof(_endgame_perf_titles)) value = lengthof(_endgame_perf_titles) - 1; return _endgame_perf_titles[value]; } |