fix codedump when pressing button "2" and no game is selected

This commit is contained in:
ardi@ist-einmalig.de 2009-10-15 12:41:32 +00:00
parent 539b3e48b5
commit d7401a77cf

View File

@ -1279,6 +1279,7 @@ int MenuDiscList() {
break; break;
} else if (gameInfo.GetState() == STATE_CLICKED && mountMethod!=3) { } else if (gameInfo.GetState() == STATE_CLICKED && mountMethod!=3) {
gameInfo.ResetState(); gameInfo.ResetState();
if(selectImg1>=0 && selectImg1<(s32)gameCnt) {
gameSelected = selectImg1; gameSelected = selectImg1;
rockout(); rockout();
struct discHdr *header = &gameList[selectImg1]; struct discHdr *header = &gameList[selectImg1];
@ -1292,6 +1293,7 @@ int MenuDiscList() {
break; break;
} }
} }
}
else if (dvdBtn.GetState() == STATE_CLICKED) { else if (dvdBtn.GetState() == STATE_CLICKED) {
mountMethodOLD = (mountMethod==3?mountMethod:0); mountMethodOLD = (mountMethod==3?mountMethod:0);