summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-11-15 02:49:03 +0100
committerHaru <haru@dotalux.com>2013-11-15 02:49:03 +0100
commit532da96cf0220a52648d619caaee42206177ed02 (patch)
tree98859128df90d52eb75f6bd2ac947a1684483a50 /src/map
parent769ac1a193764055c64786064dc36669f11c6d9d (diff)
downloadhercules-532da96cf0220a52648d619caaee42206177ed02.tar.gz
hercules-532da96cf0220a52648d619caaee42206177ed02.tar.bz2
hercules-532da96cf0220a52648d619caaee42206177ed02.tar.xz
hercules-532da96cf0220a52648d619caaee42206177ed02.zip
Small fix to the Item DB parser (Slots, not Slot!)
- Special thanks to kyeme Signed-off-by: Haru <haru@dotalux.com>
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 48b3dc837..929a90562 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -1786,7 +1786,7 @@ int itemdb_readdb_libconfig_sub(config_setting_t *it, int n, const char *source)
if( config_setting_lookup_int(it, "Range", &i32) && i32 >= 0 )
id.range = i32;
- if( config_setting_lookup_int(it, "Slot", &i32) && i32 >= 0 )
+ if( config_setting_lookup_int(it, "Slots", &i32) && i32 >= 0 )
id.slot = i32;
if( config_setting_lookup_int(it, "Job", &i32) ) // This is an unsigned value, do not check for >= 0