aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMarisa-Chan2015-01-23 16:31:10 +0600
committerMarisa-Chan2015-01-23 16:31:10 +0600
commit568c13b11531fcfb10b53bbc84d723e6fd1d0e40 (patch)
tree03996a0b0300886728d69533794c79a28d5cf7b0 /engines
parent9b498d576ed9b922ef61175310a6b369e4d30e3f (diff)
downloadscummvm-rg350-568c13b11531fcfb10b53bbc84d723e6fd1d0e40.tar.gz
scummvm-rg350-568c13b11531fcfb10b53bbc84d723e6fd1d0e40.tar.bz2
scummvm-rg350-568c13b11531fcfb10b53bbc84d723e6fd1d0e40.zip
ZVISION: Use correct virtual class type instead of MusicNode
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/scripting/actions.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp
index b12ecf66ee..9a2f1d10ff 100644
--- a/engines/zvision/scripting/actions.cpp
+++ b/engines/zvision/scripting/actions.cpp
@@ -103,7 +103,7 @@ ActionAttenuate::ActionAttenuate(ZVision *engine, int32 slotkey, const Common::S
bool ActionAttenuate::execute() {
ScriptingEffect *fx = _engine->getScriptManager()->getSideFX(_key);
if (fx && fx->getType() == ScriptingEffect::SCRIPTING_EFFECT_AUDIO) {
- MusicNode *mus = (MusicNode *)fx;
+ MusicNodeBASE *mus = (MusicNodeBASE *)fx;
mus->setVolume(255 * (10000 - abs(_attenuation)) / 10000 );
}
return true;
@@ -154,7 +154,7 @@ bool ActionCrossfade::execute() {
if (_keyOne) {
ScriptingEffect *fx = _engine->getScriptManager()->getSideFX(_keyOne);
if (fx && fx->getType() == ScriptingEffect::SCRIPTING_EFFECT_AUDIO) {
- MusicNode *mus = (MusicNode *)fx;
+ MusicNodeBASE *mus = (MusicNodeBASE *)fx;
if (_oneStartVolume >= 0)
mus->setVolume((_oneStartVolume * 255) / 100);
@@ -165,7 +165,7 @@ bool ActionCrossfade::execute() {
if (_keyTwo) {
ScriptingEffect *fx = _engine->getScriptManager()->getSideFX(_keyTwo);
if (fx && fx->getType() == ScriptingEffect::SCRIPTING_EFFECT_AUDIO) {
- MusicNode *mus = (MusicNode *)fx;
+ MusicNodeBASE *mus = (MusicNodeBASE *)fx;
if (_twoStartVolume >= 0)
mus->setVolume((_twoStartVolume * 255) / 100);