mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-18 19:12:44 +03:00
fix(util): convert void pointer to StreamRecord pointer when trying to read
This commit is contained in:
parent
70642dec21
commit
ac395c287d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user