mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-08 23:59:53 +03:00
fix(sound): add missing logic in SEOpenCallback
This commit is contained in:
1 file changed
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user