diff options
-rw-r--r-- | sky/sound.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sky/sound.cpp b/sky/sound.cpp index c2f407b515..b091b18fce 100644 --- a/sky/sound.cpp +++ b/sky/sound.cpp @@ -1094,6 +1094,8 @@ void Sound::playSound(uint16 sound, uint16 volume, uint8 channel) { } volume = ((volume & 0x7F) + 1) << 1; + if (volume > 255) + volume = 255; sound &= 0xFF; // note: all those tables are big endian. Don't ask me why. *sigh* |