Skip to content
Snippets Groups Projects
Commit d59e6ad0 authored by kwolekr's avatar kwolekr
Browse files

Fix typo in WieldMesh::setItem()

parent ff740a41
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment