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; };