summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-08-14 18:58:32 -0300
committershennetsind <ind@henn.et>2013-08-14 18:58:32 -0300
commite642dc4aa08a7276a5c92ca564f80ded5f0d272f (patch)
tree525a1cb56ccc560aee7c3e1b7582e9a81648ab52
parentb4cf8f280cc5cdd027685fb6dd2a2c5692e12115 (diff)
downloadhercules-e642dc4aa08a7276a5c92ca564f80ded5f0d272f.tar.gz
hercules-e642dc4aa08a7276a5c92ca564f80ded5f0d272f.tar.bz2
hercules-e642dc4aa08a7276a5c92ca564f80ded5f0d272f.tar.xz
hercules-e642dc4aa08a7276a5c92ca564f80ded5f0d272f.zip
Fixed crash uncovered by the ab1fad052cd771e183f496f5db922fa03a13edea update
Special Thanks to Haruna Signed-off-by: shennetsind <ind@henn.et>
-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);