mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 21:45:12 +00:00
fix a crash while changing the volume
This commit is contained in:
parent
45ea768590
commit
34b78700c4
1 changed files with 1 additions and 0 deletions
|
@ -579,6 +579,7 @@ void audio_sample_play(struct ModAudio* audio, Vec3f position, f32 volume) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void audio_custom_update_volume(void) {
|
void audio_custom_update_volume(void) {
|
||||||
|
if (!sModAudioPool) { return; }
|
||||||
struct DynamicPoolNode* node = sModAudioPool->tail;
|
struct DynamicPoolNode* node = sModAudioPool->tail;
|
||||||
while (node) {
|
while (node) {
|
||||||
struct DynamicPoolNode* prev = node->prev;
|
struct DynamicPoolNode* prev = node->prev;
|
||||||
|
|
Loading…
Reference in a new issue