add missing SongOrCourse variable

This commit is contained in:
AJ Kelly
2011-08-20 01:18:29 -05:00
parent 3a49e3c787
commit 44b2b0a451
@@ -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();