[Scummvm-cvs-logs] SF.net SVN: scummvm: [29155] scummvm/trunk/engines/parallaction/objects.cpp
peres001 at users.sourceforge.net
peres001 at users.sourceforge.net
Thu Oct 4 18:19:42 CEST 2007
Revision: 29155
http://scummvm.svn.sourceforge.net/scummvm/?rev=29155&view=rev
Author: peres001
Date: 2007-10-04 09:19:42 -0700 (Thu, 04 Oct 2007)
Log Message:
-----------
Fixed bug #1803287. The inner block was changing the test condition causing unwanted behavior.
Modified Paths:
--------------
scummvm/trunk/engines/parallaction/objects.cpp
Modified: scummvm/trunk/engines/parallaction/objects.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/objects.cpp 2007-10-04 08:04:18 UTC (rev 29154)
+++ scummvm/trunk/engines/parallaction/objects.cpp 2007-10-04 16:19:42 UTC (rev 29155)
@@ -385,10 +385,14 @@
}
void FixedTable::clear() {
+ uint32 deleted = 0;
for (uint32 i = _numFixed; i < _used; i++) {
free(_data[i]);
- _used--;
+ _data[i] = 0;
+ deleted++;
}
+
+ _used -= deleted;
}
Table* createTableFromStream(uint32 size, Common::SeekableReadStream &stream) {
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