summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/itemdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 7b6fd0ed7..87ba90410 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -670,7 +670,7 @@ void itemdb_read_groups(void) {
data->group = &itemdb->groups[count];
itemdb->groups[count].id = data->nameid;
- itemdb->groups[count].qty = config_setting_length(itg);
+ itemdb->groups[count].qty = gsize[ count ];
CREATE(itemdb->groups[count].nameid, unsigned short, gsize[ count ] + 1);