aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/sound.cpp
diff options
context:
space:
mode:
authorAlyssa Milburn2012-08-22 14:00:46 +0200
committerAlyssa Milburn2012-08-22 21:51:51 +0200
commitc3407390013b1e1826bdb31979a50f5e8a957f04 (patch)
tree4da60e960d3b2d34da582b06bbcdcd714d736df0 /engines/tony/sound.cpp
parent482c1a71b04bf1b5d0f18847ce445c45085e77fa (diff)
downloadscummvm-rg350-c3407390013b1e1826bdb31979a50f5e8a957f04.tar.gz
scummvm-rg350-c3407390013b1e1826bdb31979a50f5e8a957f04.tar.bz2
scummvm-rg350-c3407390013b1e1826bdb31979a50f5e8a957f04.zip
TONY: Replace _vm with g_vm.
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);