diff options
author | Strangerke | 2012-11-24 00:16:44 +0100 |
---|---|---|
committer | Strangerke | 2012-11-24 00:16:44 +0100 |
commit | 38acdce7358a92d78faecd618f1905ad5fe8462b (patch) | |
tree | 3277310a7d34c11171e047c731a61eb743cd2b1f /engines/hopkins/sound.cpp | |
parent | 384ca5dd827c1a62d81a957fbfd3a18ed47a56e0 (diff) | |
download | scummvm-rg350-38acdce7358a92d78faecd618f1905ad5fe8462b.tar.gz scummvm-rg350-38acdce7358a92d78faecd618f1905ad5fe8462b.tar.bz2 scummvm-rg350-38acdce7358a92d78faecd618f1905ad5fe8462b.zip |
HOPKINS: Fix more CppCheck warnings
Diffstat (limited to 'engines/hopkins/sound.cpp')
-rw-r--r-- | engines/hopkins/sound.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/hopkins/sound.cpp b/engines/hopkins/sound.cpp index 8974d3e9fe..da3a3de747 100644 --- a/engines/hopkins/sound.cpp +++ b/engines/hopkins/sound.cpp @@ -633,11 +633,9 @@ int SoundManager::VOICE_STAT(int voiceIndex) { } void SoundManager::STOP_VOICE(int voiceIndex) { - int wavIndex; - if (Voice[voiceIndex]._status) { Voice[voiceIndex]._status = 0; - wavIndex = Voice[voiceIndex]._wavIndex; + int wavIndex = Voice[voiceIndex]._wavIndex; if (Swav[wavIndex]._active) { if (Swav[wavIndex].freeSample) DEL_SAMPLE_SDL(wavIndex); |