diff --git a/Switch_Toolbox_Library/Generics/GenericObject.cs b/Switch_Toolbox_Library/Generics/GenericObject.cs index 8b56fb58..52f8c30a 100644 --- a/Switch_Toolbox_Library/Generics/GenericObject.cs +++ b/Switch_Toolbox_Library/Generics/GenericObject.cs @@ -418,7 +418,7 @@ namespace Toolbox.Library for (int v = 0; v < f.Count; v += 3) { - if (f.Count <= i + 2) + if (f.Count <= v + 2) continue; Vertex v1 = Shapes[s].vertices[f[v]];