From 5c575a0be99ff7ed0066174e9935b787a1dd5f2d Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sun, 19 Apr 2020 20:15:20 +0100 Subject: [PATCH] Fix crash Dammit my build process wasn't actually updating the binary I was testing. --- src/Backends/Audio/WiiU-Software.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Backends/Audio/WiiU-Software.cpp b/src/Backends/Audio/WiiU-Software.cpp index 8731d203..1bd9fc2f 100644 --- a/src/Backends/Audio/WiiU-Software.cpp +++ b/src/Backends/Audio/WiiU-Software.cpp @@ -81,7 +81,7 @@ static void FrameCallback(void) AXVoiceOffsets offsets; AXGetVoiceOffsets(voices[0], &offsets); - unsigned int current_buffer = offsets.currentOffset / (buffer_length / 2); + unsigned int current_buffer = offsets.currentOffset > (buffer_length / 2) ? 1 : 0; static unsigned int last_buffer = 1;