From 717aa9587d63e383598f06308fd9313be272f9c5 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sat, 20 Aug 2011 01:19:18 -0500 Subject: [PATCH] and with this commit, hopefully issue 441 will be fixed. --- .../ScreenEvaluation decorations/default.lua | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Themes/default/BGAnimations/ScreenEvaluation decorations/default.lua b/Themes/default/BGAnimations/ScreenEvaluation decorations/default.lua index 2ead0a03bb..cfd2082b1a 100644 --- a/Themes/default/BGAnimations/ScreenEvaluation decorations/default.lua +++ b/Themes/default/BGAnimations/ScreenEvaluation decorations/default.lua @@ -40,12 +40,14 @@ local function PercentScore( pn ) SongOrCourse = GAMESTATE:GetCurrentSong() StepsOrTrail = GAMESTATE:GetCurrentSteps(pn) end; - local st = StepsOrTrail:GetStepsType(); - local diff = StepsOrTrail:GetDifficulty(); - local courseType = GAMESTATE:IsCourseMode() and SongOrCourse:GetCourseType() or nil; - local cd = GetCustomDifficulty(st, diff, courseType); - self:diffuse(CustomDifficultyToColor(cd)); - self:shadowcolor(CustomDifficultyToDarkColor(cd)); + if SongOrCourse and StepsOrTrail then + local st = StepsOrTrail:GetStepsType(); + local diff = StepsOrTrail:GetDifficulty(); + local courseType = GAMESTATE:IsCourseMode() and SongOrCourse:GetCourseType() or nil; + local cd = GetCustomDifficulty(st, diff, courseType); + self:diffuse(CustomDifficultyToColor(cd)); + self:shadowcolor(CustomDifficultyToDarkColor(cd)); + end local pss = STATSMAN:GetPlayedStageStats(1):GetPlayerStageStats(pn); if pss then