Skip to content

Commit

Permalink
ContentLUT fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Dec 9, 2023
1 parent f513c09 commit f1353c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/content/ContentLUT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ ContentLUT::ContentLUT(size_t blocksCount, const Content* content) {
ContentIndices* indices = content->indices;
for (size_t i = 0; i < blocksCount; i++) {
blocks.push_back(i);
}
for (size_t i = 0; i < indices->countBlockDefs(); i++) {
blockNames.push_back(indices->getBlockDef(i)->name);
}

for (size_t i = indices->countBlockDefs(); i < blocksCount; i++) {
blockNames.push_back("");
}
}

ContentLUT* ContentLUT::create(const path& filename,
Expand Down

0 comments on commit f1353c7

Please sign in to comment.