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

This commit is contained in:
fallenoak committed 2025-11-29 12:47:28 -06:00
1 parent 9af59d47a6
commit 7412f9951b
1 file changed
+1 -1
+1 -1
View File
@@ -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;