mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-11-30 17:19:27 +00:00
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