aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/inventory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/inventory.cpp')
-rw-r--r--engines/mads/inventory.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/mads/inventory.cpp b/engines/mads/inventory.cpp
index 89eaaadb1b..f1a2537d42 100644
--- a/engines/mads/inventory.cpp
+++ b/engines/mads/inventory.cpp
@@ -88,5 +88,8 @@ bool InventoryObjects::isInRoom(int objectId) const {
return (*this)[objectId]._roomNumber == _vm->_game->_scene._currentSceneId;
}
+bool InventoryObjects::isInInventory(int objectId) const {
+ return (*this)[objectId]._roomNumber == PLAYER_INVENTORY;
+}
} // End of namespace MADS