This commit is contained in:
UnknownShadow200 2024-06-06 20:47:45 +10:00
parent e9fc3024c4
commit f780f204d5

View File

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