diff options
author | Travis Howell | 2003-07-27 12:05:08 +0000 |
---|---|---|
committer | Travis Howell | 2003-07-27 12:05:08 +0000 |
commit | b8ce60ea1872b760e9caecf40260c7ae3eeb8ae9 (patch) | |
tree | 50f8ad513192105e8de35dcc3e838ef4d04b0e70 /simon/items.cpp | |
parent | f6984add8f67d53d1521021a2c336647f483f248 (diff) | |
download | scummvm-rg350-b8ce60ea1872b760e9caecf40260c7ae3eeb8ae9.tar.gz scummvm-rg350-b8ce60ea1872b760e9caecf40260c7ae3eeb8ae9.tar.bz2 scummvm-rg350-b8ce60ea1872b760e9caecf40260c7ae3eeb8ae9.zip |
Count amount of save files available so load/save dialog works correctly.
svn-id: r9196
Diffstat (limited to 'simon/items.cpp')
-rw-r--r-- | simon/items.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/simon/items.cpp b/simon/items.cpp index 7191e45068..b7f5ea7f6a 100644 --- a/simon/items.cpp +++ b/simon/items.cpp @@ -1422,8 +1422,8 @@ start_over_2:; if (!_savedialog_flag) goto start_over_2; _saveload_row_curpos += 6; -// if (_saveload_row_curpos >= _num_savegame_rows) -// _saveload_row_curpos = _num_savegame_rows; + if (_saveload_row_curpos >= _num_savegame_rows) + _saveload_row_curpos = _num_savegame_rows; goto strange_jump; } @@ -1459,6 +1459,8 @@ start_over_3:; if (!_savedialog_flag) goto start_over_3; _saveload_row_curpos += 6; + if (_saveload_row_curpos >= _num_savegame_rows) + _saveload_row_curpos = _num_savegame_rows; goto strange_jump; } |