ContentLUT fix
This commit is contained in:
@@ -19,8 +19,14 @@ ContentLUT::ContentLUT(size_t blocksCount, const Content* content) {
|
|||||||
ContentIndices* indices = content->indices;
|
ContentIndices* indices = content->indices;
|
||||||
for (size_t i = 0; i < blocksCount; i++) {
|
for (size_t i = 0; i < blocksCount; i++) {
|
||||||
blocks.push_back(i);
|
blocks.push_back(i);
|
||||||
|
}
|
||||||
|
for (size_t i = 0; i < indices->countBlockDefs(); i++) {
|
||||||
blockNames.push_back(indices->getBlockDef(i)->name);
|
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,
|
ContentLUT* ContentLUT::create(const path& filename,
|
||||||
|
|||||||
Reference in New Issue
Block a user