From f780f204d51585a256c7419489e84cbdc89c83c6 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 6 Jun 2024 20:47:45 +1000 Subject: [PATCH] oops --- src/Model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model.c b/src/Model.c index c307ece35..7df5d52cc 100644 --- a/src/Model.c +++ b/src/Model.c @@ -535,7 +535,7 @@ static struct CustomModel custom_models[MAX_CUSTOM_MODELS]; struct CustomModel* CustomModel_Get(int id) { if (id >= MAX_CUSTOM_MODELS) return NULL; - return &custom_models[MAX_CUSTOM_MODELS]; + return &custom_models[id]; } #endif