[Scummvm-git-logs] scummvm master -> 066ffdba60f51c07cc0818c4772e63f67719d9ba

AndywinXp noreply at scummvm.org
Sun Oct 8 17:35:14 UTC 2023


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:
066ffdba60 SCUMM: Fix previous commit on inventory slots


Commit: 066ffdba60f51c07cc0818c4772e63f67719d9ba
    https://github.com/scummvm/scummvm/commit/066ffdba60f51c07cc0818c4772e63f67719d9ba
Author: AndywinXp (andywinxp at gmail.com)
Date: 2023-10-08T19:35:07+02:00

Commit Message:
SCUMM: Fix previous commit on inventory slots

Changed paths:
    engines/scumm/object.cpp


diff --git a/engines/scumm/object.cpp b/engines/scumm/object.cpp
index fae612728ea..3b9c71432df 100644
--- a/engines/scumm/object.cpp
+++ b/engines/scumm/object.cpp
@@ -194,7 +194,7 @@ void ScummEngine::clearOwnerOf(int obj) {
 				_inventory[i] = 0;
 
 				// Verified from INDY3 disasm, the gaps were not being filled up before v4...
-				if (_game.version < 4) {
+				if (_game.version >= 4) {
 					// Now fill up the gap removing the object from the inventory created.
 					for (i = 0; i < _numInventory - 1; i++) {
 						if (!_inventory[i] && _inventory[i + 1]) {




More information about the Scummvm-git-logs mailing list