Skip to content

Commit 134421f

Browse files
committed
fix rebirth eval lua error when viewing replay when having no local score
1 parent f084077 commit 134421f

File tree

1 file changed

+5
-1
lines changed
  • Themes/Rebirth/BGAnimations/ScreenEvaluation decorations

1 file changed

+5
-1
lines changed

Themes/Rebirth/BGAnimations/ScreenEvaluation decorations/scoreBoard.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,11 @@ local function scoreList()
227227
-- particularly for scores that dont actually exist in your profile, like online replays
228228
-- in those cases, we put the mostRecentScore into its own fallback table
229229
-- mostRecentScore will never be nil. if it is, the game actually crashes before it gets here.
230-
scores = scoresByRate[getRate(mostRecentScore)] or {mostRecentScore}
230+
if scoresByRate == nil then
231+
scores = {}
232+
else
233+
scores = scoresByRate[getRate(mostRecentScore)] or {mostRecentScore}
234+
end
231235
end
232236
else
233237
local steps = GAMESTATE:GetCurrentSteps()

0 commit comments

Comments
 (0)