Include filesize when opening a file with searchpaths

This commit is contained in:
Jan committed 2021-03-13 10:27:18 +01:00
1 parent 62247cecda
commit 83080db991
11 files changed
+72 -35

No files matched your search

+2 -2
View File
@@ -47,9 +47,9 @@ namespace IW4
{
const auto filePathImage = searchPath->Open(imageFileName);
if (filePathImage != nullptr)
if (filePathImage.IsOpen())
{
loadedTexture = loader.LoadIwi(*filePathImage);
loadedTexture = loader.LoadIwi(*filePathImage.m_stream);
}
}