From 8137bd56d8b49dc961ab2bf0340281ab21475ea7 Mon Sep 17 00:00:00 2001 From: Foxar Date: Mon, 21 Dec 2020 20:07:34 +0100 Subject: [PATCH] Changed: Usage of getVertices()[y] to getVertex(y) --- src/engine/models/mesh_material.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/models/mesh_material.cpp b/src/engine/models/mesh_material.cpp index 59e5daa..d6108da 100644 --- a/src/engine/models/mesh_material.cpp +++ b/src/engine/models/mesh_material.cpp @@ -83,9 +83,9 @@ u8 MeshMaterial::isInFrustum(Plane *t_frustumPlanes, const Vector3 &position) for (u8 y = 0; y < 8 && (boxIn == 0 || boxOut == 0); y++) { boxCalcTemp.set( - boundingBoxObj->getVertices()[y].x + position.x, - boundingBoxObj->getVertices()[y].y + position.y, - boundingBoxObj->getVertices()[y].z + position.z); + boundingBoxObj->getVertex(y).x + position.x, + boundingBoxObj->getVertex(y).y + position.y, + boundingBoxObj->getVertex(y).z + position.z); if (t_frustumPlanes[i].distanceTo(boxCalcTemp) < 0) boxOut++; else