diff --git a/src/sound/SESound.cpp b/src/sound/SESound.cpp index 48b1d15..3f0e4ad 100644 --- a/src/sound/SESound.cpp +++ b/src/sound/SESound.cpp @@ -622,7 +622,7 @@ void SESound::ProcessVolumeUpdates() { // Determine dirty channel groups - bool dirtyChannelGroups[SESound::s_ChannelGroups.Count()]; + auto dirtyChannelGroups = static_cast(alloca(SESound::s_ChannelGroups.Count() * sizeof(bool))); memset(dirtyChannelGroups, 0, SESound::s_ChannelGroups.Count() * sizeof(bool)); for (uint32_t i = 0; i < SESound::s_ChannelGroups.Count(); i++) {