aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-05-08 23:30:56 -0400
committerkwolekr <kwolekr@minetest.net>2015-05-08 23:30:56 -0400
commitd59e6ad004b64d37ac10dddd61a7b35e7baa1f89 (patch)
treee22a0b5f28d747644151b6ccfc4ea3f21aa36f47 /src
parentff740a417946abb003426734645f823458eee9f3 (diff)
downloadminetest-d59e6ad004b64d37ac10dddd61a7b35e7baa1f89.tar.gz
minetest-d59e6ad004b64d37ac10dddd61a7b35e7baa1f89.tar.bz2
minetest-d59e6ad004b64d37ac10dddd61a7b35e7baa1f89.zip
Fix typo in WieldMesh::setItem()
Diffstat (limited to 'src')
-rw-r--r--src/wieldmesh.cpp2
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;