mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 00:02:55 +00:00
fix: fix StringTableLoaderV3 not properly initializing cell indices
This commit is contained in:
parent
ada3a3251e
commit
c8d25059b9
@ -130,6 +130,8 @@ namespace string_table
|
||||
}
|
||||
|
||||
stringTable->cellIndex = static_cast<int16_t*>(memory.Alloc(sizeof(int16_t) * cellCount));
|
||||
for (auto i = 0u; i < cellCount; i++)
|
||||
stringTable->cellIndex[i] = i;
|
||||
|
||||
std::sort(&stringTable->cellIndex[0],
|
||||
&stringTable->cellIndex[cellCount - 1],
|
||||
|
Loading…
x
Reference in New Issue
Block a user