fix(sound): use alloca instead of dynamic allocation to make MSVC happy

This commit is contained in:
fallenoak committed 2025-11-29 16:59:15 -06:00
1 parent 7fe7ed96d6
commit 7838a0fe85
1 file changed
+1 -1
+1 -1
View File
@@ -622,7 +622,7 @@ void SESound::ProcessVolumeUpdates() {
// Determine dirty channel groups
bool dirtyChannelGroups[SESound::s_ChannelGroups.Count()];
auto dirtyChannelGroups = static_cast<bool*>(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++) {