]> git.lizzy.rs Git - minetest.git/blobdiff - src/content_cao.cpp
Fix logic of checkbox formspec element validity checking
[minetest.git] / src / content_cao.cpp
index 8471b7e81408eec598b5542b56cb2370786576f1..671ddd4b1afc241667b734229b4c49b176f3b349 100644 (file)
@@ -1468,7 +1468,7 @@ void GenericCAO::updateAnimation()
 
 void GenericCAO::updateBonePosition()
 {
-       if(!m_bone_position.size() || m_animated_meshnode == NULL)
+       if(m_bone_position.empty() || m_animated_meshnode == NULL)
                return;
 
        m_animated_meshnode->setJointMode(irr::scene::EJUOR_CONTROL); // To write positions to the mesh on render