aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hopkins/sound.cpp')
-rw-r--r--engines/hopkins/sound.cpp4
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);