From f8f91c6b4954809675337e20b204ad6a04433d86 Mon Sep 17 00:00:00 2001 From: Foxar Date: Mon, 21 Dec 2020 20:09:00 +0100 Subject: [PATCH] Changed: Return type of getVertex() to be const. --- src/engine/include/models/bounding_box.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/include/models/bounding_box.hpp b/src/engine/include/models/bounding_box.hpp index 1dec3ee..9ffafd5 100644 --- a/src/engine/include/models/bounding_box.hpp +++ b/src/engine/include/models/bounding_box.hpp @@ -69,7 +69,7 @@ public: * Returns bounding box raw vertices array. * Total length: 8 */ - Vector3 &getVertex(const u8 &i) { return _vertices[i]; }; + const Vector3 &getVertex(const u8 &i) { return _vertices[i]; }; /** Returns single vertex from raw vertices array.*/ Vector3 *getVertices() { return _vertices; };