Skip to content

Commit

Permalink
prevent lua error by missing "game" global...
Browse files Browse the repository at this point in the history
  • Loading branch information
TaroNuke committed Jun 18, 2020
1 parent cfa6f2c commit 65f5902
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Scripts/Other.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function TechnoPrefs()
end

function StyleIcon()
if not game then game = 'dance' end
s = "icon " .. game .. " " .. CurStyleName()
path = THEME:GetPath( EC_GRAPHICS, "MenuElements" , s)
i = SCREENMAN:GetTopScreen():GetChild('StyleIcon')
Expand Down

0 comments on commit 65f5902

Please sign in to comment.