aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/tony/sound.cpp')
-rw-r--r--engines/tony/sound.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/tony/sound.cpp b/engines/tony/sound.cpp
index 7380b3a93a..781172df52 100644
--- a/engines/tony/sound.cpp
+++ b/engines/tony/sound.cpp
@@ -138,7 +138,7 @@ FPSfx::FPSfx(bool bSoundOn) {
_rewindableStream = 0;
_bPaused = false;
- _vm->_activeSfx.push_back(this);
+ g_vm->_activeSfx.push_back(this);
}
/**
@@ -154,7 +154,7 @@ FPSfx::~FPSfx() {
return;
g_system->getMixer()->stopHandle(_handle);
- _vm->_activeSfx.remove(this);
+ g_vm->_activeSfx.remove(this);
if (_loopStream)
delete _loopStream; // _rewindableStream is deleted by deleting _loopStream
@@ -403,7 +403,7 @@ void FPSfx::soundCheckProcess(CORO_PARAM, const void *param) {
for (;;) {
// Check each active sound
- for (_ctx->i = _vm->_activeSfx.begin(); _ctx->i != _vm->_activeSfx.end(); ++_ctx->i) {
+ for (_ctx->i = g_vm->_activeSfx.begin(); _ctx->i != g_vm->_activeSfx.end(); ++_ctx->i) {
FPSfx *sfx = *_ctx->i;
if (sfx->endOfBuffer())
CoroScheduler.setEvent(sfx->_hEndOfBuffer);