diff options
author | Andrei Prykhodko | 2018-07-02 11:32:59 +0300 |
---|---|---|
committer | Andrei Prykhodko | 2018-07-02 11:47:22 +0300 |
commit | 7e3c586412c63c9a26a206a41b4e2d449906b8aa (patch) | |
tree | 0ef249a73fd6a641787cc3ea17e321da93cd159a /engines/pink | |
parent | 600049ce4dc746ba49dec8859c02649338bb5f4c (diff) | |
download | scummvm-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.cpp | 6 |
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]); } |