Consoles: Fix custom models never working and crashing Vita port

This commit is contained in:
UnknownShadow200 2024-08-12 21:42:35 +10:00
parent 9f7a7bcfb5
commit 3e8fc0ddcf

View file

@ -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;