diff options
Diffstat (limited to 'src/wieldmesh.cpp')
-rw-r--r-- | src/wieldmesh.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wieldmesh.cpp b/src/wieldmesh.cpp index f12771968..036b25a90 100644 --- a/src/wieldmesh.cpp +++ b/src/wieldmesh.cpp @@ -358,7 +358,7 @@ void WieldMeshSceneNode::setItem(const ItemStack &item, IGameDef *gamedef) / (BS * f.visual_scale)); } u32 material_count = m_meshnode->getMaterialCount(); - if (material_count >= 6) { + if (material_count > 6) { errorstream << "WieldMeshSceneNode::setItem: Invalid material " "count " << material_count << ", truncating to 6" << std::endl; material_count = 6; |