mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -04:00
oops
This commit is contained in:
parent
e9fc3024c4
commit
f780f204d5
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user