Skip to content

Commit

Permalink
Fix broken eval screen when watching replay for file without scores
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Nov 28, 2018
1 parent 3cb6e17 commit 55ed90b
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -44,6 +44,9 @@ if GAMESTATE:IsPlayerEnabled(player) then
origTable = getScoresByKey(player)
score = STATSMAN:GetCurStageStats():GetPlayerStageStats(player):GetHighScore()
rtTable = getRateTable(origTable)
if rtTable == nil then
return
end
hsTable = rtTable[getRate(score)] or {score}
scoreIndex = getHighScoreIndex(hsTable, score)
end
Expand Down

0 comments on commit 55ed90b

Please sign in to comment.