diff options
author | shennetsind <ind@henn.et> | 2013-08-14 18:58:32 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-08-14 18:58:32 -0300 |
commit | e642dc4aa08a7276a5c92ca564f80ded5f0d272f (patch) | |
tree | 525a1cb56ccc560aee7c3e1b7582e9a81648ab52 /src/map/itemdb.c | |
parent | b4cf8f280cc5cdd027685fb6dd2a2c5692e12115 (diff) | |
download | hercules-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>
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r-- | src/map/itemdb.c | 5 |
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); |