diff options
author | Anton <vob999@bk.ru> | 2014-12-12 19:55:40 +0500 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-12-12 15:16:24 -0500 |
commit | 10e0cf8b2c27917a3fd45e73a5d835af4313db3b (patch) | |
tree | 906faf9a2e5185b1eb63060af007e070fe0097d0 /src/content_cao.cpp | |
parent | 83830e8682de23840675a35daa386fa2820fbb7d (diff) | |
download | minetest-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.cpp | 2 |
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 |