fix(sound): correct logic in SESoundInternal::GetVolume

This commit is contained in:
fallenoak 2025-11-29 12:47:28 -06:00
parent 9af59d47a6
commit 7412f9951b
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -32,7 +32,7 @@ float SESoundInternal::GetVolume() {
auto channelGroupIndex = this->m_channelGroup; auto channelGroupIndex = this->m_channelGroup;
while (channelGroupIndex != -1) { 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; auto channelGroupVolume = channelGroup->m_volume * channelGroup->m_muteVolume;
volume *= channelGroupVolume; volume *= channelGroupVolume;