[Scummvm-cvs-logs] SF.net SVN: scummvm:[48308] scummvm/trunk/engines/teenagent/pack.cpp
megath at users.sourceforge.net
megath at users.sourceforge.net
Sat Mar 20 13:18:13 CET 2010
Revision: 48308
http://scummvm.svn.sourceforge.net/scummvm/?rev=48308&view=rev
Author: megath
Date: 2010-03-20 12:18:13 +0000 (Sat, 20 Mar 2010)
Log Message:
-----------
do not read last dummy entry in pack
Modified Paths:
--------------
scummvm/trunk/engines/teenagent/pack.cpp
Modified: scummvm/trunk/engines/teenagent/pack.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/pack.cpp 2010-03-20 12:13:37 UTC (rev 48307)
+++ scummvm/trunk/engines/teenagent/pack.cpp 2010-03-20 12:18:13 UTC (rev 48308)
@@ -93,7 +93,7 @@
uint32 count = file.readUint32LE();
debug(0, "opened %s, found %u entries [memory]", filename.c_str(), count);
- for (uint32 i = 0; i <= count; ++i) {
+ for (uint32 i = 0; i < count; ++i) {
uint32 offset = file.readUint32LE();
int32 pos = file.pos();
uint32 next_offset = file.readUint32LE();
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