[Scummvm-git-logs] scummvm master -> 05e19e88ea4ef250b4637252e816fe192e120de8

bluegr noreply at scummvm.org
Thu May 14 23:13:24 UTC 2026


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:
05e19e88ea NANCY: Fix playing of the inventory item removal sound


Commit: 05e19e88ea4ef250b4637252e816fe192e120de8
    https://github.com/scummvm/scummvm/commit/05e19e88ea4ef250b4637252e816fe192e120de8
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2026-05-15T02:12:07+03:00

Commit Message:
NANCY: Fix playing of the inventory item removal sound

The inventory item removal sound is only heard when the held item
changes, not in all cases when an inventory item is removed.

Fix #16690

Changed paths:
    engines/nancy/state/scene.cpp


diff --git a/engines/nancy/state/scene.cpp b/engines/nancy/state/scene.cpp
index e7ffa3eb61f..ce17c5fa2a7 100644
--- a/engines/nancy/state/scene.cpp
+++ b/engines/nancy/state/scene.cpp
@@ -365,12 +365,12 @@ void Scene::removeItemFromInventory(int16 id, bool pickUp) {
 
 		if (pickUp) {
 			setHeldItem(id);
+			g_nancy->_sound->playSound("BUOK");
 		} else if (getHeldItem() == id) {
 			setHeldItem(-1);
+			g_nancy->_sound->playSound("BUOK");
 		}
 
-		g_nancy->_sound->playSound("BUOK");
-
 		if (g_nancy->getGameType() <= kGameTypeNancy9) {
 			_inventoryBox.removeItem(id);
 		} else if (_inventoryPopup.isOpen()) {




More information about the Scummvm-git-logs mailing list