fix problem with SM erroring (nonfatal) when a song is played without a background

This commit is contained in:
AJ Kelly
2006-06-14 01:12:15 +00:00
parent 14068e1369
commit d4c7112a36
@@ -97,6 +97,14 @@ function GetRandomSongBackground()
return THEME:GetPathG("", "_blank")
end
function GetSongBackground()
local Path = GAMESTATE:GetCurrentSong():GetBackgroundPath()
if not Path then
return THEME:GetPathG("Common","fallback background")
end
return Path
end
-- (c) 2005 Glenn Maynard, Chris Danford
-- All rights reserved.
--