mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 06:41:51 +00:00
Clear the list of savegames before re-populating it. Otherwise, even save names
that have been entered before cancelling the dialog will remain in it. svn-id: r35987
This commit is contained in:
parent
248605800e
commit
a2c671da97
@ -724,6 +724,8 @@ void Control::readSavegameDescriptions(void) {
|
||||
Common::StringList filenames = _saveFileMan->listSavefiles(pattern.c_str());
|
||||
sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..)
|
||||
|
||||
_saveNames.clear();
|
||||
|
||||
int num = 0;
|
||||
int slotNum = 0;
|
||||
for (Common::StringList::const_iterator file = filenames.begin(); file != filenames.end(); ++file) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user