summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--players.c2
1 files changed, 1 insertions, 1 deletions
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];
}