From 7838a0fe853ed46118b9be5be94d5ba45021a5fa Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sat, 29 Nov 2025 16:59:15 -0600 Subject: [PATCH] fix(sound): use alloca instead of dynamic allocation to make MSVC happy --- src/sound/SESound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) {