mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-12-05 01:17:06 +00:00
Merge pull request #296 from RobLoach/audiostream-unload-fixes
AudioStream: Only Unload() if it's ready
This commit is contained in:
@@ -90,7 +90,9 @@ class AudioStream : public ::AudioStream {
|
||||
* Unload audio stream and free memory
|
||||
*/
|
||||
void Unload() {
|
||||
::UnloadAudioStream(*this);
|
||||
if (IsReady()) {
|
||||
::UnloadAudioStream(*this);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user