From 10e0cf8b2c27917a3fd45e73a5d835af4313db3b Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 12 Dec 2014 19:55:40 +0500 Subject: Use std::string::empty() instead of size() where applicable --- src/content_cao.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/content_cao.cpp') 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 -- cgit v1.2.3