aboutsummaryrefslogtreecommitdiff
path: root/engines/toon
diff options
context:
space:
mode:
authorSylvain Dupont2010-11-04 22:12:16 +0000
committerSylvain Dupont2010-11-04 22:12:16 +0000
commit1e59b9dd2ca15f36543ee2a16a01b57d792689c3 (patch)
tree9353654ac4a3bb26da62d5b1e296fa3aac60ac21 /engines/toon
parent9a704e51c1b777bd5c4cc07c49248010036b309b (diff)
downloadscummvm-rg350-1e59b9dd2ca15f36543ee2a16a01b57d792689c3.tar.gz
scummvm-rg350-1e59b9dd2ca15f36543ee2a16a01b57d792689c3.tar.bz2
scummvm-rg350-1e59b9dd2ca15f36543ee2a16a01b57d792689c3.zip
TOON: Fix sound effect archive destroy
Variable not initialized. Crashed when no sound effects were present in the room (Bug fixed thanks to Thomas) svn-id: r54076
Diffstat (limited to 'engines/toon')
-rw-r--r--engines/toon/audio.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/toon/audio.cpp b/engines/toon/audio.cpp
index 2a078b8a23..e3c6de8c71 100644
--- a/engines/toon/audio.cpp
+++ b/engines/toon/audio.cpp
@@ -483,6 +483,7 @@ void AudioStreamInstance::setVolume(int32 volume) {
AudioStreamPackage::AudioStreamPackage(ToonEngine *vm) : _vm(vm) {
_indexBuffer = 0;
+ _file = 0;
}
AudioStreamPackage::~AudioStreamPackage() {