aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorwhiterandrek2018-05-12 18:21:45 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit866b552eed2d10fd73ce2c0b4e288fce1c64c64e (patch)
treef128c94b874e48d7f7be2a14554efe57c9f96adb /engines
parent9364010e5e347abc14488f8a03aaaea508a28b67 (diff)
downloadscummvm-rg350-866b552eed2d10fd73ce2c0b4e288fce1c64c64e.tar.gz
scummvm-rg350-866b552eed2d10fd73ce2c0b4e288fce1c64c64e.tar.bz2
scummvm-rg350-866b552eed2d10fd73ce2c0b4e288fce1c64c64e.zip
PINK: changed static_cast to dynamic_cast
Diffstat (limited to 'engines')
-rw-r--r--engines/pink/objects/actors/lead_actor.cpp4
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()))