Fix a crash bug by preventing the situation.

This commit is contained in:
Jason Felds
2011-03-17 14:02:25 -04:00
parent 49b95ea52f
commit c1d077888e
3 changed files with 10 additions and 1 deletions
+2
View File
@@ -17,6 +17,8 @@ sm-ssc v1.2.4 | 20110???
--------
* [ScreenEdit] Fix bug number 222, where Steps disappeared if they weren't
saved. [AJ, Wolfman2000]
* [ScreenOptionsEdit] Fix bug number 186, where people could try to edit or
share songs when they didn't have any. [Wolfman2000]
20110316
--------
+7
View File
@@ -71,6 +71,13 @@ Branch = {
end;
return "ScreenSelectProfile";
end,
OptionsEdit = function()
-- Similar to above, don't let anyone in here with 0 songs.
if SONGMAN:GetNumSongs() == 0 and SONGMAN:GetNumAdditionalSongs() == 0 then
return "ScreenHowToInstallSongs";
end;
return "ScreenOptionsEdit";
end,
AfterProfileLoad = function()
return "ScreenSelectProfile"
end,
+1 -1
View File
@@ -1657,7 +1657,7 @@ Choice1="applydefaultoptions;text,Game Start;screen,"..Branch.StartGame()
Choice2="screen,ScreenNetworkOptions;text,Play Online"
Choice3="screen,ScreenSelectGame;text,Select Game"
Choice4="screen,ScreenOptionsService;text,Options"
Choice5="screen,ScreenOptionsEdit;text,Edit/Share"
Choice5="text,Edit/Share;screen,"..Branch.OptionsEdit()
Choice6="screen,ScreenJukeboxMenu;text,Jukebox"
Choice7="screen,ScreenExit;text,Exit"
Choice8="screen,ScreenTest;text,Sandbox"