From 47bd6c9b8255683bb81c29e4841f6f6c86ab1dde Mon Sep 17 00:00:00 2001 From: Christian Haas Date: Tue, 9 Apr 2024 09:52:43 +0200 Subject: [PATCH] Remove redundant check; Already checked at beginning of function --- src/raudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raudio.c b/src/raudio.c index 93475fcc2..750f68f6c 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -1888,7 +1888,7 @@ void UpdateMusicStream(Music music) // Check both sub-buffers to check if they require refilling for (int i = 0; i < 2; i++) { - if ((music.stream.buffer != NULL) && !music.stream.buffer->isSubBufferProcessed[i]) continue; // No refilling required, move to next sub-buffer + if (!music.stream.buffer->isSubBufferProcessed[i]) continue; // No refilling required, move to next sub-buffer unsigned int framesLeft = music.frameCount - music.stream.buffer->framesProcessed; // Frames left to be processed unsigned int framesToStream = 0; // Total frames to be streamed