aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/Base/BSoundBuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/Base/BSoundBuffer.cpp')
-rw-r--r--engines/wintermute/Base/BSoundBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/Base/BSoundBuffer.cpp b/engines/wintermute/Base/BSoundBuffer.cpp
index a8c41cd022..35471bd4d9 100644
--- a/engines/wintermute/Base/BSoundBuffer.cpp
+++ b/engines/wintermute/Base/BSoundBuffer.cpp
@@ -260,7 +260,7 @@ void CBSoundBuffer::SetType(TSoundType Type) {
//////////////////////////////////////////////////////////////////////////
HRESULT CBSoundBuffer::SetVolume(int Volume) {
if (_stream && _handle) {
- byte vol = Volume / 100.f * Audio::Mixer::kMaxChannelVolume;
+ byte vol = (byte)(Volume / 100.f * Audio::Mixer::kMaxChannelVolume);
g_system->getMixer()->setChannelVolume(*_handle, vol);
}
return S_OK;