summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/itemdb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index e2d2621f8..431ee3135 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -937,6 +937,7 @@ void itemdb_read_packages(void) {
must[i] = 0;
random[i] = 0;
rgroup[i] = 0;
+ rgroups[i] = NULL;
}
/* validate tree, drop poisonous fruits! */
@@ -1031,8 +1032,8 @@ void itemdb_read_packages(void) {
c = 0;
while( (it = config_setting_get_elem(itg,c++)) ) {
- int icount = 1, expire = 0, rate = 10000;
- bool announce = false, named = false, gid = 0;
+ int icount = 1, expire = 0, rate = 10000, gid = 0;
+ bool announce = false, named = false;
itname = config_setting_name(it);