1
0
mirror of synced 2024-11-12 02:00:50 +01:00

GFBMDL : Check for valid mesh index

This commit is contained in:
KillzXGaming 2019-11-26 21:14:20 -05:00
parent e0cb642183
commit 8d797f42e3

View File

@ -85,7 +85,8 @@ namespace FirstPlugin
transform = Skeleton.bones[boneIndex].Transform;
}
genericMesh.Text = Skeleton.bones[(int)group.MeshID].Text;
if (group.MeshID < Skeleton.bones.Count && group.MeshID > 0)
genericMesh.Text = Skeleton.bones[(int)group.MeshID].Text;
Renderer.Meshes.Add(genericMesh);
GenericMeshes.Add(genericMesh);