mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
fix(sound): add missing logic in SEOpenCallback
This commit is contained in:
parent
7adc2acf9f
commit
950d36c677
@ -99,7 +99,11 @@ FMOD_RESULT SEOpenCallback(const char* name, uint32_t* filesize, void** handle,
|
||||
|
||||
*filesize = SFile::GetFileSize(internal->m_file, nullptr);
|
||||
*handle = internal->m_file;
|
||||
*(&userdata) = nullptr;
|
||||
userdata = nullptr;
|
||||
|
||||
internal->m_file = nullptr;
|
||||
|
||||
SESound::s_InternalCritSect.Leave();
|
||||
|
||||
return FMOD_OK;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user