From 1cc1e62ed6c9baab88620bca778ef07fec3528e7 Mon Sep 17 00:00:00 2001 From: Foxar Date: Mon, 21 Dec 2020 19:03:40 +0100 Subject: [PATCH] Fixed: Fixed incorrect vertex array for-loop iteration. --- src/engine/models/bounding_box.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/models/bounding_box.cpp b/src/engine/models/bounding_box.cpp index ec487b2..271632f 100644 --- a/src/engine/models/bounding_box.cpp +++ b/src/engine/models/bounding_box.cpp @@ -14,7 +14,7 @@ BoundingBox::BoundingBox(Vector3 *t_vectorArray) { //Perform a deep copy of vertex array parameter - for (int i = 0; i < 9; i++) + for (int i = 0; i < 8; i++) _vertices[i] = t_vectorArray[i]; //This might be shortened with Vector3 operator overloading, but current