From d59e6ad004b64d37ac10dddd61a7b35e7baa1f89 Mon Sep 17 00:00:00 2001
From: kwolekr <kwolekr@minetest.net>
Date: Fri, 8 May 2015 23:30:56 -0400
Subject: [PATCH] Fix typo in WieldMesh::setItem()

---
 src/wieldmesh.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
GitLab