[Scummvm-cvs-logs] SF.net SVN: scummvm:[35987] scummvm/trunk/engines/sword1/control.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Wed Jan 21 21:00:26 CET 2009


Revision: 35987
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35987&view=rev
Author:   eriktorbjorn
Date:     2009-01-21 20:00:26 +0000 (Wed, 21 Jan 2009)

Log Message:
-----------
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.

Modified Paths:
--------------
    scummvm/trunk/engines/sword1/control.cpp

Modified: scummvm/trunk/engines/sword1/control.cpp
===================================================================
--- scummvm/trunk/engines/sword1/control.cpp	2009-01-21 19:46:51 UTC (rev 35986)
+++ scummvm/trunk/engines/sword1/control.cpp	2009-01-21 20:00:26 UTC (rev 35987)
@@ -724,6 +724,8 @@
 	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) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list