aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
authorPaul Gilbert2017-07-09 18:50:11 -0400
committerPaul Gilbert2017-07-09 18:50:11 -0400
commit8a7dba17b78dcd712a9dd6f83e885c8ceec536c7 (patch)
tree8d3c0b00f3873ce6da7818aa7e92a8f09517d0f5 /engines/titanic
parent6aaf732159791e32e57ec5821c25923d86f9c31f (diff)
downloadscummvm-rg350-8a7dba17b78dcd712a9dd6f83e885c8ceec536c7.tar.gz
scummvm-rg350-8a7dba17b78dcd712a9dd6f83e885c8ceec536c7.tar.bz2
scummvm-rg350-8a7dba17b78dcd712a9dd6f83e885c8ceec536c7.zip
TITANIC: Fixes for correctly display of drop targets
Diffstat (limited to 'engines/titanic')
-rw-r--r--engines/titanic/core/drop_target.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/titanic/core/drop_target.cpp b/engines/titanic/core/drop_target.cpp
index 99d30e41aa..51e47519ea 100644
--- a/engines/titanic/core/drop_target.cpp
+++ b/engines/titanic/core/drop_target.cpp
@@ -98,6 +98,7 @@ bool CDropTarget::DropObjectMsg(CDropObjectMsg *msg) {
if (_hideItem)
msg->_item->setVisible(false);
+ _itemName = msg->_item->getName();
CDropZoneGotObjectMsg gotMsg(this);
gotMsg.execute(msg->_item);
playSound(_soundName);
@@ -176,7 +177,7 @@ bool CDropTarget::DropZoneLostObjectMsg(CDropZoneLostObjectMsg *msg) {
obj->petAddToInventory();
}
- setVisible(true);
+ obj->setVisible(true);
CDropZoneLostObjectMsg lostMsg(this);
lostMsg.execute(obj);
}