From 0f9a035c91027457bb6e0d5c31fed87d9a822025 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Tue, 10 May 2011 09:11:44 -0500 Subject: [PATCH] fix script error --- Themes/_fallback/Scripts/04 Scoring.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Themes/_fallback/Scripts/04 Scoring.lua b/Themes/_fallback/Scripts/04 Scoring.lua index b6d68abb9c..1c8c8df8b5 100644 --- a/Themes/_fallback/Scripts/04 Scoring.lua +++ b/Themes/_fallback/Scripts/04 Scoring.lua @@ -8,10 +8,11 @@ local ZeroIfNotFound = { __index = function() return 0 end; }; -- Retrieve the amount of taps/holds/rolls involved. Used for some formulas. function GetTotalItems(radars) - return radars:GetValue('RadarCategory_TapsAndHolds') - + radars:GetValue('RadarCategory_Holds') - + radars:GetValue('RadarCategory_Rolls'); - + radars:GetValue('RadarCategory_Lifts'); + local total = radars:GetValue('RadarCategory_TapsAndHolds') + total = total + radars:GetValue('RadarCategory_Holds') + total = total + radars:GetValue('RadarCategory_Rolls') + total = total + radars:GetValue('RadarCategory_Lifts') + return total end; -- Determine whether marvelous timing is to be considered.