Fixed a silly mistake that was causing crashes
authorCameron Ball <c.ball1729@gmail.com>
Sat, 18 Jan 2014 14:45:34 +0000 (22:45 +0800)
committerCameron Ball <c.ball1729@gmail.com>
Sat, 18 Jan 2014 14:45:34 +0000 (22:45 +0800)
Themes/GrooveNights/Scripts/gnSystem.lua

index bd3edfa..2634181 100644 (file)
@@ -495,7 +495,7 @@ local function QuadAwardEasterEgg(Params)
     if ScoreP1 == "100.00%" and ScoreP2 == "100.00%" then
         --choose p1 or p2 randomly
                local seconds = gnPlaySec -- TODO: This is temporary until the time tracker is reimplemented
-        local pn = math.mod(seconds, 2) + 1
+        local pn = math.mod(seconds, 2)
         AwardFile = GetQuadAwardFile(pn)
     elseif ScoreP1 == "100.00%" then
         AwardFile = GetQuadAwardFile(PLAYER_1)