Mercurial > hg > openttd
changeset 2616:e82414cf63ce draft
(svn r3154) - Fix: Last value of an array is lengthof-1; let's keep this at a typo, shall we :P
author | Darkvater <Darkvater@openttd.org> |
---|---|
date | Mon, 07 Nov 2005 17:31:21 +0000 |
parents | 716f6811fd4c |
children | 2c0d3643053a |
files | players.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/players.c +++ b/players.c @@ -919,7 +919,7 @@ 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]; }