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

This commit is contained in:
fallenoak 2025-11-29 16:59:15 -06:00
parent 7fe7ed96d6
commit 7838a0fe85
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

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++) {