[Scummvm-cvs-logs] SF.net SVN: scummvm: [26412] scummvm/trunk/engines/parallaction/defs.h

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Sun Apr 8 00:50:57 CEST 2007


Revision: 26412
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26412&view=rev
Author:   peres001
Date:     2007-04-07 15:50:56 -0700 (Sat, 07 Apr 2007)

Log Message:
-----------
Fixed broken implementation of ManagedList

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/defs.h

Modified: scummvm/trunk/engines/parallaction/defs.h
===================================================================
--- scummvm/trunk/engines/parallaction/defs.h	2007-04-07 22:15:16 UTC (rev 26411)
+++ scummvm/trunk/engines/parallaction/defs.h	2007-04-07 22:50:56 UTC (rev 26412)
@@ -60,7 +60,9 @@
 	}
 
 	iterator erase(iterator pos) {
-		return erase(pos, pos);
+		if (pos != Common_List::end())
+			delete *pos;
+		return Common_List::erase(pos);
 	}
 
 	iterator erase(iterator first, iterator last) {


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