summaryrefslogtreecommitdiff
path: root/src/content_cao.cpp
diff options
context:
space:
mode:
authorAnton <vob999@bk.ru>2014-12-12 19:55:40 +0500
committerShadowNinja <shadowninja@minetest.net>2014-12-12 15:16:24 -0500
commit10e0cf8b2c27917a3fd45e73a5d835af4313db3b (patch)
tree906faf9a2e5185b1eb63060af007e070fe0097d0 /src/content_cao.cpp
parent83830e8682de23840675a35daa386fa2820fbb7d (diff)
downloadminetest-10e0cf8b2c27917a3fd45e73a5d835af4313db3b.tar.gz
minetest-10e0cf8b2c27917a3fd45e73a5d835af4313db3b.tar.bz2
minetest-10e0cf8b2c27917a3fd45e73a5d835af4313db3b.zip
Use std::string::empty() instead of size() where applicable
Diffstat (limited to 'src/content_cao.cpp')
-rw-r--r--src/content_cao.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp
index 8471b7e81..671ddd4b1 100644
--- a/src/content_cao.cpp
+++ b/src/content_cao.cpp
@@ -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