Browse Source

fix sound crashes (#3403)

pull/3406/head
qndel 4 years ago committed by GitHub
parent
commit
47561716b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Source/sound.cpp

2
Source/sound.cpp

@ -164,7 +164,7 @@ std::unique_ptr<TSnd> sound_file_load(const char *path, bool stream)
#ifndef STREAM_ALL_AUDIO
} else {
SDL_RWops *file = SFileOpenRw(path);
if (path == nullptr) {
if (file == nullptr) {
ErrDlg("SFileOpenFile failed", path, __FILE__, __LINE__);
}
size_t dwBytes = SDL_RWsize(file);

Loading…
Cancel
Save