Fixed: Fixed incorrect vertex array for-loop iteration.

This commit is contained in:
Foxar
2020-12-21 19:03:40 +01:00
parent 1765885bec
commit 1cc1e62ed6
+1 -1
View File
@@ -14,7 +14,7 @@
BoundingBox::BoundingBox(Vector3 *t_vectorArray) BoundingBox::BoundingBox(Vector3 *t_vectorArray)
{ {
//Perform a deep copy of vertex array parameter //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]; _vertices[i] = t_vectorArray[i];
//This might be shortened with Vector3 operator overloading, but current //This might be shortened with Vector3 operator overloading, but current