Fix issue by loading the string buffer into a variable instead of using it directly.
This commit is contained in:
parent
cce87be09a
commit
4ebfd55d3d
@ -34,8 +34,10 @@ namespace Assets
|
||||
return;
|
||||
}
|
||||
|
||||
const Game::GfxImageFileHeader* iwiHeader = reinterpret_cast<const Game::GfxImageFileHeader*>(iwi.GetBuffer().data());
|
||||
auto iwiBuffer = iwi.GetBuffer();
|
||||
|
||||
const Game::GfxImageFileHeader* iwiHeader = reinterpret_cast<const Game::GfxImageFileHeader*>(iwiBuffer.data());
|
||||
|
||||
image->mapType = 3;
|
||||
image->dataLen1 = iwiHeader->fileSizeForPicmip[0] - 32;
|
||||
image->dataLen2 = iwiHeader->fileSizeForPicmip[0] - 32;
|
||||
|
Loading…
Reference in New Issue
Block a user