From 3e8fc0ddcf61259809b78f0eb51d27f7ff696b8b Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 12 Aug 2024 21:42:35 +1000 Subject: [PATCH] Consoles: Fix custom models never working and crashing Vita port --- src/Model.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Model.c b/src/Model.c index 5ee73e760..81ea7af61 100644 --- a/src/Model.c +++ b/src/Model.c @@ -874,8 +874,9 @@ void CustomModel_Register(struct CustomModel* cm) { static struct ModelTex customDefaultTex; CheckMaxVertices(); - cm->model.name = cm->name; - cm->model.defaultTex = &customDefaultTex; + cm->model.name = cm->name; + cm->model.defaultTex = &customDefaultTex; + cm->model.maxVertices = cm->numParts * MODEL_BOX_VERTICES; cm->model.MakeParts = Model_NoParts; cm->model.Draw = CustomModel_Draw;