aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink/objects')
-rw-r--r--engines/pink/objects/inventory.cpp4
-rw-r--r--engines/pink/objects/inventory.h2
2 files changed, 3 insertions, 3 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;
}
diff --git a/engines/pink/objects/inventory.h b/engines/pink/objects/inventory.h
index ca0e8a712b..a92a837a11 100644
--- a/engines/pink/objects/inventory.h
+++ b/engines/pink/objects/inventory.h
@@ -57,7 +57,7 @@ public:
void saveState(Archive &archive);
void update();
- void onClick(Common::Point point);
+ void onClick(const Common::Point point);
bool start(bool paused);