Fix typo in WieldMesh::setItem()

This commit is contained in:
kwolekr 2015-05-08 23:30:56 -04:00
parent ff740a4179
commit d59e6ad004
1 changed files with 1 additions and 1 deletions

View File

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