GetSpeedModType didn't return a default if nothing was set in the machine profile.
authorCameron Ball <c.ball1729@gmail.com>
Tue, 3 Dec 2013 01:16:17 +0000 (09:16 +0800)
committerCameron Ball <c.ball1729@gmail.com>
Tue, 3 Dec 2013 01:16:17 +0000 (09:16 +0800)
Themes/GrooveNights/Scripts/gnCustomOptions.lua

index 6c72bfa..9c1fe0c 100644 (file)
@@ -43,4 +43,7 @@ function GetSpeedModType()
         for i=1,3 do
             if type == string.lower(Names[i]) then return type end
         end
+
+        -- no pref, default to the first name in the list.
+        return string.lower(Names[1])
 end
\ No newline at end of file