mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 02:25:32 -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) {
|
struct CustomModel* CustomModel_Get(int id) {
|
||||||
if (id >= MAX_CUSTOM_MODELS) return NULL;
|
if (id >= MAX_CUSTOM_MODELS) return NULL;
|
||||||
|
|
||||||
return &custom_models[MAX_CUSTOM_MODELS];
|
return &custom_models[id];
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user