aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_starfield.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-07-17 10:44:35 -0400
committerPaul Gilbert2016-07-17 13:10:01 -0400
commitc4e3cd87abbddef07436c83736cd3acebd0798aa (patch)
treef6cc0f19c07109a809f200b2ac95736c1e9af60b /engines/titanic/pet_control/pet_starfield.cpp
parentdee69e206906f59d6af5f6e6351d5b9d8770221f (diff)
downloadscummvm-rg350-c4e3cd87abbddef07436c83736cd3acebd0798aa.tar.gz
scummvm-rg350-c4e3cd87abbddef07436c83736cd3acebd0798aa.tar.bz2
scummvm-rg350-c4e3cd87abbddef07436c83736cd3acebd0798aa.zip
TITANIC: Finished startfield initDocument
Diffstat (limited to 'engines/titanic/pet_control/pet_starfield.cpp')
-rw-r--r--engines/titanic/pet_control/pet_starfield.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_starfield.cpp b/engines/titanic/pet_control/pet_starfield.cpp
index 35ef943f54..34d696e09c 100644
--- a/engines/titanic/pet_control/pet_starfield.cpp
+++ b/engines/titanic/pet_control/pet_starfield.cpp
@@ -107,10 +107,10 @@ bool CPetStarfield::MouseButtonUpMsg(CMouseButtonUpMsg *msg) {
if (_petControl) {
CStarControl *starControl = _petControl->getStarControl();
- if (starControl) {
+ if (starControl && starControl->canSetStarDestination()) {
CPETSetStarDestinationMsg starfieldMsg;
starfieldMsg.execute(_petControl->_remoteTarget);
- starControl->fn3();
+ starControl->starDestinationSet();
}
}