diff options
author | Andrei Prykhodko | 2018-06-29 17:11:13 +0300 |
---|---|---|
committer | Andrei Prykhodko | 2018-06-29 17:46:55 +0300 |
commit | 8af0e2c7cc15c23269c73902c88343b0b49ce512 (patch) | |
tree | 569197af1884076b1ad2511428343fe4303a1769 | |
parent | 5378db3dc0caa00a965e0bd456622f604ed37128 (diff) | |
download | scummvm-rg350-8af0e2c7cc15c23269c73902c88343b0b49ce512.tar.gz scummvm-rg350-8af0e2c7cc15c23269c73902c88343b0b49ce512.tar.bz2 scummvm-rg350-8af0e2c7cc15c23269c73902c88343b0b49ce512.zip |
PINK: fixed PDAButtonActor::isActive method
-rw-r--r-- | engines/pink/objects/actors/pda_button_actor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/pink/objects/actors/pda_button_actor.cpp b/engines/pink/objects/actors/pda_button_actor.cpp index a3c6eea29c..10dd563734 100644 --- a/engines/pink/objects/actors/pda_button_actor.cpp +++ b/engines/pink/objects/actors/pda_button_actor.cpp @@ -25,6 +25,7 @@ #include "pink/pink.h" #include "pink/objects/pages/page.h" #include "pink/objects/actors/pda_button_actor.h" +#include "pink/objects/actions/action.h" namespace Pink { @@ -74,7 +75,7 @@ void PDAButtonActor::onMouseOver(const Common::Point point, CursorMgr *mgr) { } bool PDAButtonActor::isActive() { - return _name != "Inactive"; + return _action && _action->getName() != "Inactive"; } } // End of namespace Pink |