mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
parent
59676dfc84
commit
ccb5366e40
1 changed files with 2 additions and 0 deletions
|
|
@ -27,6 +27,8 @@ function init()
|
|||
gameSelection.list_data = gameListIds;
|
||||
if (gameSelection.selected == -1)
|
||||
gameSelection.selected = 0;
|
||||
else if (gameSelection.selected >= savedGames.length) // happen when we delete the last saved game
|
||||
gameSelection.selected = savedGames.length - 1;
|
||||
}
|
||||
|
||||
function loadGame()
|
||||
|
|
|
|||
Loading…
Reference in a new issue