mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
fix(sound): correct logic in SESoundInternal::GetVolume
This commit is contained in:
parent
9af59d47a6
commit
7412f9951b
@ -32,7 +32,7 @@ float SESoundInternal::GetVolume() {
|
||||
auto channelGroupIndex = this->m_channelGroup;
|
||||
|
||||
while (channelGroupIndex != -1) {
|
||||
auto channelGroup = &SESound::s_ChannelGroups[this->m_channelGroup];
|
||||
auto channelGroup = &SESound::s_ChannelGroups[channelGroupIndex];
|
||||
auto channelGroupVolume = channelGroup->m_volume * channelGroup->m_muteVolume;
|
||||
|
||||
volume *= channelGroupVolume;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user