Skip to content

Commit

Permalink
Fix typo in WieldMesh::setItem()
Browse files Browse the repository at this point in the history
  • Loading branch information
kwolekr committed May 9, 2015
1 parent ff740a4 commit d59e6ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wieldmesh.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit d59e6ad

Please sign in to comment.