aboutsummaryrefslogtreecommitdiff
path: root/engines/pink
diff options
context:
space:
mode:
authorAndrei Prykhodko2018-07-02 11:32:59 +0300
committerAndrei Prykhodko2018-07-02 11:47:22 +0300
commit7e3c586412c63c9a26a206a41b4e2d449906b8aa (patch)
tree0ef249a73fd6a641787cc3ea17e321da93cd159a /engines/pink
parent600049ce4dc746ba49dec8859c02649338bb5f4c (diff)
downloadscummvm-rg350-7e3c586412c63c9a26a206a41b4e2d449906b8aa.tar.gz
scummvm-rg350-7e3c586412c63c9a26a206a41b4e2d449906b8aa.tar.bz2
scummvm-rg350-7e3c586412c63c9a26a206a41b4e2d449906b8aa.zip
PINK: changed dynamic_cast to static_cast
Diffstat (limited to 'engines/pink')
-rw-r--r--engines/pink/pda_mgr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/pink/pda_mgr.cpp b/engines/pink/pda_mgr.cpp
index 0877b0b556..050daaba6e 100644
--- a/engines/pink/pda_mgr.cpp
+++ b/engines/pink/pda_mgr.cpp
@@ -25,7 +25,7 @@
#include "pink/objects/actors/pda_button_actor.h"
#include "pink/objects/actors/lead_actor.h"
#include "pink/objects/pages/pda_page.h"
-#include "pink/objects/actions/action_still.h"
+#include "pink/objects/actions/action_play_with_sfx.h"
namespace Pink {
@@ -215,14 +215,14 @@ void PDAMgr::updateWheels(bool playSfx) {
Actor *wheel = _page->findActor(kCountryWheel);
if (playSfx && wheel->getAction()->getName() != g_countries[_countryIndex]) {
wheel->setAction(Common::String(g_countries[_countryIndex]) + kSfx);
- dynamic_cast<ActionCEL*>(wheel->getAction())->update(); // hack
+ static_cast<ActionPlayWithSfx*>(wheel->getAction())->update(); // hack
}
wheel->setAction(g_countries[_countryIndex]);
wheel = _page->findActor(kDomainWheel);
if (playSfx && wheel->getAction()->getName() != g_domains[_domainIndex]) {
wheel->setAction(Common::String(g_domains[_domainIndex]) + kSfx);
- dynamic_cast<ActionCEL*>(wheel->getAction())->update(); // hack
+ static_cast<ActionPlayWithSfx*>(wheel->getAction())->update(); // hack
}
wheel->setAction(g_domains[_domainIndex]);
}