aboutsummaryrefslogtreecommitdiff
path: root/engines/made/scriptfuncs.cpp
diff options
context:
space:
mode:
authorMax Horn2009-05-31 15:07:55 +0000
committerMax Horn2009-05-31 15:07:55 +0000
commit7140dda5e5e8af593c373a27340aea4f72d618c2 (patch)
tree7867dffa507b3219d841ef6222c81753b2c28a05 /engines/made/scriptfuncs.cpp
parent4441ca4b3e39ed1613c826f7b46b1e7076fcbe14 (diff)
downloadscummvm-rg350-7140dda5e5e8af593c373a27340aea4f72d618c2.tar.gz
scummvm-rg350-7140dda5e5e8af593c373a27340aea4f72d618c2.tar.bz2
scummvm-rg350-7140dda5e5e8af593c373a27340aea4f72d618c2.zip
MADE: cleanup
svn-id: r41070
Diffstat (limited to 'engines/made/scriptfuncs.cpp')
-rw-r--r--engines/made/scriptfuncs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/made/scriptfuncs.cpp b/engines/made/scriptfuncs.cpp
index c0373dfa0d..0f1e7b4512 100644
--- a/engines/made/scriptfuncs.cpp
+++ b/engines/made/scriptfuncs.cpp
@@ -637,7 +637,7 @@ int16 ScriptFunctions::sfGetSoundEnergy(int16 argc, int16 *argv) {
int result = 0;
if (_vm->_mixer->isSoundHandleActive(_audioStreamHandle) && _vm->_soundEnergyArray) {
while (_vm->_soundEnergyIndex < _vm->_soundEnergyArray->size()) {
- SoundEnergyItem *soundEnergyItem = &_vm->_soundEnergyArray->operator[](_vm->_soundEnergyIndex);
+ SoundEnergyItem *soundEnergyItem = &(*_vm->_soundEnergyArray)[_vm->_soundEnergyIndex];
if (((_vm->_soundRate / 1000) * _vm->_mixer->getSoundElapsedTime(_audioStreamHandle)) < soundEnergyItem->position) {
result = soundEnergyItem->energy;
break;