diff --git a/src/util/SFile.cpp b/src/util/SFile.cpp index 51283fe..46ebbb5 100644 --- a/src/util/SFile.cpp +++ b/src/util/SFile.cpp @@ -163,7 +163,7 @@ int32_t SFile::Read(SFile* file, void* buffer, size_t bytestoread, size_t* bytes case SFILE_PLAIN: { auto stream = reinterpret_cast(file->m_handle); - Blizzard::File::Read(m_stream, buffer, bytestoread, bytesread); + Blizzard::File::Read(stream, buffer, bytestoread, bytesread); return 1; } case SFILE_PAQ: @@ -182,7 +182,7 @@ int32_t SFile::Read(SFile* file, void* buffer, size_t bytestoread, size_t* bytes } } default: - STORM_ASSERT(0) + STORM_ASSERT(0); } return 0;