fix(util): convert void pointer to StreamRecord pointer when trying to read

This commit is contained in:
superp00t committed 2024-02-17 21:38:34 -05:00
1 parent 70642dec21
commit ac395c287d
1 file changed
+2 -1
+2 -1
View File
@@ -161,7 +161,8 @@ int32_t SFile::Read(SFile* file, void* buffer, size_t bytestoread, size_t* bytes
switch (file->m_type) {
case SFILE_PLAIN:
{
Blizzard::File::Read(file->m_stream, buffer, bytestoread, bytesread);
auto stream = reinterpret_cast<Blizzard::File::StreamRecord*>(file->m_handle);
Blizzard::File::Read(m_stream, buffer, bytestoread, bytesread);
return 1;
}
case SFILE_PAQ: