aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/sfx
diff options
context:
space:
mode:
authorFilippos Karapetis2011-08-07 16:05:54 +0300
committerFilippos Karapetis2011-08-07 16:05:54 +0300
commite95bc9d7b0e9fdcdde98f9e7d0deb1595edeff97 (patch)
tree6c5dfb482e487ae69ccafd5a8d6ff988385f4f48 /engines/sword25/sfx
parent5974fcd0c1cac3f57700a9efcd7899e8f89ef3e5 (diff)
downloadscummvm-rg350-e95bc9d7b0e9fdcdde98f9e7d0deb1595edeff97.tar.gz
scummvm-rg350-e95bc9d7b0e9fdcdde98f9e7d0deb1595edeff97.tar.bz2
scummvm-rg350-e95bc9d7b0e9fdcdde98f9e7d0deb1595edeff97.zip
SWORD25: Make sure that id is always initialized in playSoundEx()
Diffstat (limited to 'engines/sword25/sfx')
-rw-r--r--engines/sword25/sfx/soundengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword25/sfx/soundengine.cpp b/engines/sword25/sfx/soundengine.cpp
index 1b424dac65..78b2db19eb 100644
--- a/engines/sword25/sfx/soundengine.cpp
+++ b/engines/sword25/sfx/soundengine.cpp
@@ -209,7 +209,7 @@ uint SoundEngine::playSoundEx(const Common::String &fileName, SOUND_TYPES type,
#ifdef USE_VORBIS
Audio::SeekableAudioStream *stream = Audio::makeVorbisStream(in, DisposeAfterUse::YES);
#endif
- uint id;
+ uint id = handleId;
SndHandle *handle;
if (handleId == 0x1337)