diff options
author | Vladimir Menshakov | 2010-03-20 12:18:13 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2010-03-20 12:18:13 +0000 |
commit | a5c66b64f53332bc5245f167efb37392d392a3ee (patch) | |
tree | e5480df14232cd5011cd57c8a364138c74e9fa6a /engines | |
parent | a0f90fd603bfa474ed8082ca18b272ad1b490578 (diff) | |
download | scummvm-rg350-a5c66b64f53332bc5245f167efb37392d392a3ee.tar.gz scummvm-rg350-a5c66b64f53332bc5245f167efb37392d392a3ee.tar.bz2 scummvm-rg350-a5c66b64f53332bc5245f167efb37392d392a3ee.zip |
do not read last dummy entry in pack
svn-id: r48308
Diffstat (limited to 'engines')
-rw-r--r-- | engines/teenagent/pack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/teenagent/pack.cpp b/engines/teenagent/pack.cpp index 0b12c821a5..842fc5655b 100644 --- a/engines/teenagent/pack.cpp +++ b/engines/teenagent/pack.cpp @@ -93,7 +93,7 @@ bool MemoryPack::open(const Common::String &filename) { 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(); |