diff options
author | whiterandrek | 2018-05-12 18:21:45 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | 866b552eed2d10fd73ce2c0b4e288fce1c64c64e (patch) | |
tree | f128c94b874e48d7f7be2a14554efe57c9f96adb | |
parent | 9364010e5e347abc14488f8a03aaaea508a28b67 (diff) | |
download | scummvm-rg350-866b552eed2d10fd73ce2c0b4e288fce1c64c64e.tar.gz scummvm-rg350-866b552eed2d10fd73ce2c0b4e288fce1c64c64e.tar.bz2 scummvm-rg350-866b552eed2d10fd73ce2c0b4e288fce1c64c64e.zip |
PINK: changed static_cast to dynamic_cast
-rw-r--r-- | engines/pink/objects/actors/lead_actor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/pink/objects/actors/lead_actor.cpp b/engines/pink/objects/actors/lead_actor.cpp index 8c343543a3..ddc4052479 100644 --- a/engines/pink/objects/actors/lead_actor.cpp +++ b/engines/pink/objects/actors/lead_actor.cpp @@ -200,7 +200,7 @@ void LeadActor::onLeftButtonClick(Common::Point point) { return; } - _recipient = (SupportingActor*) actor; + _recipient = dynamic_cast<SupportingActor*>(actor); if (actor->isClickable() && isInteractingWith(_recipient)) { WalkLocation *location = getWalkDestination(); if (location) { @@ -351,7 +351,7 @@ void PubPink::onClick() { void PubPink::updateCursor(Common::Point point) { if (playingMiniGame()) { - SupportingActor *actor = static_cast<SupportingActor*>(_page->getGame()->getDirector()->getActorByPoint(point)); + SupportingActor *actor = dynamic_cast<SupportingActor*>(_page->getGame()->getDirector()->getActorByPoint(point)); if (_state == kReady && actor && actor->isUseClickHandlers(_page->getModule()->getInventoryMgr()->getCurrentItem())) |