From: kwolekr Date: Sat, 9 May 2015 03:30:56 +0000 (-0400) Subject: Fix typo in WieldMesh::setItem() X-Git-Tag: 0.4.13~288 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d59e6ad004b64d37ac10dddd61a7b35e7baa1f89;p=oweals%2Fminetest.git Fix typo in WieldMesh::setItem() --- 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;