diff --git a/src/content/ContentLUT.cpp b/src/content/ContentLUT.cpp index 8536ffb7..7a0d6eb8 100644 --- a/src/content/ContentLUT.cpp +++ b/src/content/ContentLUT.cpp @@ -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,