From e95bc9d7b0e9fdcdde98f9e7d0deb1595edeff97 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 7 Aug 2011 16:05:54 +0300 Subject: SWORD25: Make sure that id is always initialized in playSoundEx() --- engines/sword25/sfx/soundengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sword25/sfx') 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) -- cgit v1.2.3