[Scummvm-git-logs] scummvm master -> 8143cb9efeeaf05039a2361f2ca8e06d9da4fbcd

bluegr bluegr at gmail.com
Tue Jun 15 11:47:27 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
8143cb9efe TRECISION: Fix loading the last file of animation bundles - bug #12642


Commit: 8143cb9efeeaf05039a2361f2ca8e06d9da4fbcd
    https://github.com/scummvm/scummvm/commit/8143cb9efeeaf05039a2361f2ca8e06d9da4fbcd
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2021-06-15T14:47:05+03:00

Commit Message:
TRECISION: Fix loading the last file of animation bundles - bug #12642

Fixes crash when sending the inflated gloves through the prison window

Changed paths:
    engines/trecision/fastfile.cpp


diff --git a/engines/trecision/fastfile.cpp b/engines/trecision/fastfile.cpp
index 715f757516..5b4fb1a491 100644
--- a/engines/trecision/fastfile.cpp
+++ b/engines/trecision/fastfile.cpp
@@ -99,7 +99,7 @@ Common::SeekableReadStream *FastFile::createReadStreamForMember(const Common::St
 	const FileEntry *entry = getEntry(name);
 	if (entry) {
 		uint32 size = (entry + 1)->offset - entry->offset;
-		if ((int32)(entry->offset + size) < _stream->size()) {
+		if ((int32)(entry->offset + size) <= _stream->size()) {
 			// Load data from fast file
 			stream = new Common::SeekableSubReadStream(_stream, entry->offset, entry->offset + size);
 		}




More information about the Scummvm-git-logs mailing list