Skip to content

Commit

Permalink
Update src/SFML/Audio/SoundBufferRecorder.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: kimci86 <kimci86@hotmail.fr>
  • Loading branch information
ChrisThrasher and kimci86 committed May 21, 2024
1 parent 43f1835 commit 4616222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SFML/Audio/SoundBufferRecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const sfSoundBuffer* sfSoundBufferRecorder_getBuffer(const sfSoundBufferRecorder
{
CSFML_CHECK_RETURN(soundBufferRecorder, nullptr);

soundBufferRecorder->SoundBuffer->This = soundBufferRecorder->This.getBuffer();
soundBufferRecorder->SoundBuffer = sfSoundBuffer{soundBufferRecorder->This.getBuffer()};

assert(soundBufferRecorder->SoundBuffer && "sfSoundBufferRecorder_getBuffer() Cannot access null sound buffer");
return &*soundBufferRecorder->SoundBuffer;
Expand Down

0 comments on commit 4616222

Please sign in to comment.