diff options
Diffstat (limited to 'engines/pink/objects/inventory.cpp')
-rw-r--r-- | engines/pink/objects/inventory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/pink/objects/inventory.cpp b/engines/pink/objects/inventory.cpp index 89df8460d1..f22925da33 100644 --- a/engines/pink/objects/inventory.cpp +++ b/engines/pink/objects/inventory.cpp @@ -140,13 +140,13 @@ void InventoryMgr::update() { } } -void InventoryMgr::onClick(Common::Point point) { +void InventoryMgr::onClick(const Common::Point point) { if (_state != kReady) return; Actor *actor = _lead->getActorByPoint(point); if (actor == _itemActor || actor == _window) { - if (actor->getAction()->getName() == "WBook") { + if (_itemActor->getAction()->getName() == "WBook") { _lead->loadPDA("TOC"); return; } |