From 723e789b2f1ac1d6f8eaa122d9626f41595c51cf Mon Sep 17 00:00:00 2001 From: Darkvater Date: Mon, 7 Nov 2005 17:31:21 +0000 Subject: (svn r3154) - Fix: Last value of an array is lengthof-1; let's keep this at a typo, shall we :P --- players.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/players.c b/players.c index df1043619..59ad5bf36 100644 --- a/players.c +++ b/players.c @@ -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]; } -- cgit v1.2.3-54-g00ecf