2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-06-26 06:11:53 +00:00

fix: dynamic array reallocation for x64

This commit is contained in:
Jan
2025-05-29 12:12:19 +01:00
parent 967a378b4e
commit e120d01697
12 changed files with 532 additions and 119 deletions

View File

@ -175,7 +175,7 @@ void ContentLoader::Load()
#ifdef ARCH_x86
m_stream.LoadDataRaw(&assetList, sizeof(assetList));
#else
auto fillAccessor = m_stream.LoadWithFill(16u);
const auto fillAccessor = m_stream.LoadWithFill(16u);
varScriptStringList = &varXAssetList->stringList;
fillAccessor.Fill(varScriptStringList->count, 0u);
fillAccessor.FillPtr(varScriptStringList->strings, 4u);