aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-01-14 12:20:59 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2017-01-14 12:20:59 +0100
commitee9b59a7fe9a3277ffdd26d29e66ef7a285df5ce (patch)
treed00cd4e687ba8bb0edc048edf535b841d3f6463a /src
parentee6d8c10ce3f7570a47c6042c36da3c8566364a7 (diff)
downloadminetest-ee9b59a7fe9a3277ffdd26d29e66ef7a285df5ce.tar.gz
minetest-ee9b59a7fe9a3277ffdd26d29e66ef7a285df5ce.tar.bz2
minetest-ee9b59a7fe9a3277ffdd26d29e66ef7a285df5ce.zip
Fix another missing const reported by clang & @sfan5
Signed-off-by: Loic Blot <loic.blot@unix-experience.fr>
Diffstat (limited to 'src')
-rw-r--r--src/content_cao.cpp2
-rw-r--r--src/content_cao.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp
index 5ddbd27c9..83756c963 100644
--- a/src/content_cao.cpp
+++ b/src/content_cao.cpp
@@ -604,7 +604,7 @@ bool GenericCAO::getCollisionBox(aabb3f *toset) const
return false;
}
-bool GenericCAO::collideWithObjects()
+bool GenericCAO::collideWithObjects() const
{
return m_prop.collideWithObjects;
}
diff --git a/src/content_cao.h b/src/content_cao.h
index 19fecdde5..846e0690a 100644
--- a/src/content_cao.h
+++ b/src/content_cao.h
@@ -132,7 +132,7 @@ public:
bool getCollisionBox(aabb3f *toset) const;
- bool collideWithObjects();
+ bool collideWithObjects() const;
aabb3f *getSelectionBox();