summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-05 21:37:03 -0300
committershennetsind <ind@henn.et>2013-07-05 21:37:03 -0300
commita804951a82633340744a506e3609e6905066988c (patch)
treeb4f4fbc9adfb83b8d0e8352805f73bc4030546c9 /src/map
parentdc85ce04b774af63fd9d13d9757feb91d56c1b81 (diff)
downloadhercules-a804951a82633340744a506e3609e6905066988c.tar.gz
hercules-a804951a82633340744a506e3609e6905066988c.tar.bz2
hercules-a804951a82633340744a506e3609e6905066988c.tar.xz
hercules-a804951a82633340744a506e3609e6905066988c.zip
Fixed compiler warning
Special Thanks to mkbu95 for bringing this up. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map')
-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 7c28c6968..e115bea5f 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -937,7 +937,7 @@ void itemdb_read_packages(void) {
c = 0;
while( (it = config_setting_get_elem(itg,c++)) ) {
- int rval;
+ int rval = 0;
if( !( t = config_setting_get_member(it, "Random") ) || (rval = config_setting_get_int(t)) < 0 ) {
ShowWarning("itemdb_read_packages: invalid 'Random' value (%d) for item '%s' in package '%s', defaulting to must!\n",rval,config_setting_name(it),name);
config_setting_remove(it, config_setting_name(it));