summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-08-21 22:46:05 +0200
committerHaru <haru@dotalux.com>2017-09-17 17:48:41 +0200
commit78a007d2371dc0a46f5e66b776fdf57f04658447 (patch)
tree459c7678230c9e05380d70721d12b58e18ffee75 /src/map/itemdb.c
parenta7a8efb326fe6bb82e83a37ce43b97bc89f74848 (diff)
downloadhercules-78a007d2371dc0a46f5e66b776fdf57f04658447.tar.gz
hercules-78a007d2371dc0a46f5e66b776fdf57f04658447.tar.bz2
hercules-78a007d2371dc0a46f5e66b776fdf57f04658447.tar.xz
hercules-78a007d2371dc0a46f5e66b776fdf57f04658447.zip
Add support for bitmask arrays in the item_db Loc field
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/itemdb.c')
-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 0ace20984..96eced725 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -2047,7 +2047,7 @@ int itemdb_readdb_libconfig_sub(struct config_setting_t *it, int n, const char *
else if( !inherit )
id.sex = 2;
- if( itemdb->lookup_const(it, "Loc", &i32) && i32 >= 0 )
+ if (itemdb->lookup_const_mask(it, "Loc", &i32) && i32 >= 0)
id.equip = i32;
if( itemdb->lookup_const(it, "WeaponLv", &i32) && i32 >= 0 )