mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-22 10:01:46 +00:00
fixed custom model alloc again
This commit is contained in:
parent
2745f932b1
commit
811e60f7cf
1 changed files with 1 additions and 1 deletions
|
|
@ -528,7 +528,7 @@ enum ModelExtendedId smlua_model_util_get_id(const char* name) {
|
|||
|
||||
// If we've extended past our current custom model limit. Reallocate so we have more space.
|
||||
if (sCustomModelsCount >= sMaxCustomModelsCount) {
|
||||
if (sMaxCustomModelsCount + CUSTOM_MODEL_CHUNK_SIZE < 0xFFFF) {
|
||||
if (sMaxCustomModelsCount + CUSTOM_MODEL_CHUNK_SIZE >= 0xFFFF) {
|
||||
LOG_LUA("Failed to get model: '%s' (too many custom models!)", name);
|
||||
return E_MODEL_ERROR_MODEL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue