fix: fix StringTableLoaderV3 not properly initializing cell indices

This commit is contained in:
Jan 2024-01-20 20:04:22 +01:00
parent ada3a3251e
commit c8d25059b9
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C

View File

@ -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],