From 981bc20337d0a1d083473ba384398ef8777443e3 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 13 Jan 2013 16:11:04 +0200 Subject: TOLTECS: Replace a magic value with its appropriate enum --- engines/toltecs/sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/toltecs') diff --git a/engines/toltecs/sound.cpp b/engines/toltecs/sound.cpp index 922ed05346..8afc0e7890 100644 --- a/engines/toltecs/sound.cpp +++ b/engines/toltecs/sound.cpp @@ -103,7 +103,7 @@ void Sound::internalPlaySound(int16 resIndex, int16 type, int16 volume, int16 pa } } } else { - if (type == -3) { + if (type == kChannelTypeSpeech) { // Stop speech and play new sound stopSpeech(); } -- cgit v1.2.3