Skip to content

Commit

Permalink
fix: fix StringTableLoaderV3 not properly initializing cell indices
Browse files Browse the repository at this point in the history
  • Loading branch information
Laupetin committed Jan 20, 2024
1 parent ada3a32 commit c8d2505
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ObjLoading/StringTable/StringTableLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit c8d2505

Please sign in to comment.