Fix another missing const reported by clang & @sfan5
authorLoic Blot <loic.blot@unix-experience.fr>
Sat, 14 Jan 2017 11:20:59 +0000 (12:20 +0100)
committerLoic Blot <loic.blot@unix-experience.fr>
Sat, 14 Jan 2017 11:20:59 +0000 (12:20 +0100)
Signed-off-by: Loic Blot <loic.blot@unix-experience.fr>
src/content_cao.cpp
src/content_cao.h

index 5ddbd27c93885548798a272525e39a4447b207fa..83756c96390303364daa01f7ee0beb7d93e5a344 100644 (file)
@@ -604,7 +604,7 @@ bool GenericCAO::getCollisionBox(aabb3f *toset) const
        return false;
 }
 
-bool GenericCAO::collideWithObjects()
+bool GenericCAO::collideWithObjects() const
 {
        return m_prop.collideWithObjects;
 }
index 19fecdde53558e7d4fcd0902866ae62a68d022f2..846e0690a2e3d831905cd42d82f36b3cd76413d6 100644 (file)
@@ -132,7 +132,7 @@ public:
 
        bool getCollisionBox(aabb3f *toset) const;
 
-       bool collideWithObjects();
+       bool collideWithObjects() const;
 
        aabb3f *getSelectionBox();