diff options
Diffstat (limited to 'src/emap/itemdb.c')
-rw-r--r-- | src/emap/itemdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emap/itemdb.c b/src/emap/itemdb.c index 4c33853..366b05d 100644 --- a/src/emap/itemdb.c +++ b/src/emap/itemdb.c @@ -149,7 +149,7 @@ void eitemdb_readdb_additional_fields_pre(int *itemid, continue; const int val = libconfig->setting_get_int(it2); - VECTOR_ENSURE(data->allowedCards, cnt + 1, 1); + VECTOR_ENSURE(data->allowedCards, 1, 1); VECTOR_INSERTZEROED(data->allowedCards, cnt); struct ItemCardExt *allowedCard = &VECTOR_INDEX(data->allowedCards, cnt); @@ -178,7 +178,7 @@ void eitemdb_readdb_additional_fields_pre(int *itemid, const char *name = config_setting_name(it2); if (name && strncmp(name, "id", 2) && strncmp(name, "Id", 2)) continue; - VECTOR_ENSURE(data->allowedAmmo, cnt + 1, 1); + VECTOR_ENSURE(data->allowedAmmo, 1, 1); VECTOR_PUSH(data->allowedAmmo, atoi(name + 2)); cnt ++; } |