[Scummvm-git-logs] scummvm master -> 491df50e549fa5b0c1b5ec8cc5c775d1d7c90d76

aquadran noreply at scummvm.org
Thu Jul 24 17:24:35 UTC 2025


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

Summary:
491df50e54 WINTERMUTE: Assume fix as common for full and lite versions


Commit: 491df50e549fa5b0c1b5ec8cc5c775d1d7c90d76
    https://github.com/scummvm/scummvm/commit/491df50e549fa5b0c1b5ec8cc5c775d1d7c90d76
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2025-07-24T19:24:29+02:00

Commit Message:
WINTERMUTE: Assume fix as common for full and lite versions

Changed paths:
    engines/wintermute/ad/ad_game.cpp


diff --git a/engines/wintermute/ad/ad_game.cpp b/engines/wintermute/ad/ad_game.cpp
index 90ef87bb298..6a411c01be4 100644
--- a/engines/wintermute/ad/ad_game.cpp
+++ b/engines/wintermute/ad/ad_game.cpp
@@ -247,11 +247,15 @@ bool AdGame::addObject(AdObject *object) {
 
 //////////////////////////////////////////////////////////////////////////
 bool AdGame::removeObject(AdObject *object) {
-	if (BaseEngine::instance().getTargetExecutable() < WME_LITE) {
-		// is it inventory object?
-		if (_inventoryOwner == object)
-			_inventoryOwner = nullptr;
-	}
+	// Below condition code is not present in Lite up to (Feb 8, 2012) (SVN repo)
+	// Not present in Lite up to (Nov 1, 2015) (Git repo)
+	// Not present up to 1.9.1 (Jan 1, 2010)
+	// Seems added into 1.10.1 beta (July 19, 2012)
+	// or later but before Mar 21, 2013 (import into Git repo)
+	//
+	// is it inventory object?
+	if (_inventoryOwner == object)
+		_inventoryOwner = nullptr;
 
 	// in case the user called Scene.CreateXXX() and Game.DeleteXXX()
 	if (_scene) {




More information about the Scummvm-git-logs mailing list