From 44b2b0a451ff3c1239f5e5a5e503db4fe656cd6b Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sat, 20 Aug 2011 01:18:29 -0500 Subject: [PATCH] add missing SongOrCourse variable --- .../BGAnimations/ScreenEvaluation decorations/default.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Themes/default/BGAnimations/ScreenEvaluation decorations/default.lua b/Themes/default/BGAnimations/ScreenEvaluation decorations/default.lua index 978be114b1..2ead0a03bb 100644 --- a/Themes/default/BGAnimations/ScreenEvaluation decorations/default.lua +++ b/Themes/default/BGAnimations/ScreenEvaluation decorations/default.lua @@ -32,10 +32,12 @@ local function PercentScore( pn ) BeginCommand=cmd(playcommand,"Set"); SetCommand=function(self) -- todo: color by difficulty - local StepsOrTrail; + local SongOrCourse, StepsOrTrail; if GAMESTATE:IsCourseMode() then + SongOrCourse = GAMESTATE:GetCurrentCourse() StepsOrTrail = GAMESTATE:GetCurrentTrail(pn) else + SongOrCourse = GAMESTATE:GetCurrentSong() StepsOrTrail = GAMESTATE:GetCurrentSteps(pn) end; local st = StepsOrTrail:GetStepsType();