summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-08-21 20:58:36 +0200
committerHaru <haru@dotalux.com>2017-09-17 17:48:33 +0200
commit926cff033bb9533ae3d8615f8b90e2e443d0525b (patch)
treee6c880ede4d47f6ef3a83ae666bd08d680187b84 /src/map/itemdb.c
parent3745f1658aab4a5ffe504a5660b76402f2e2c6d6 (diff)
downloadhercules-926cff033bb9533ae3d8615f8b90e2e443d0525b.tar.gz
hercules-926cff033bb9533ae3d8615f8b90e2e443d0525b.tar.bz2
hercules-926cff033bb9533ae3d8615f8b90e2e443d0525b.tar.xz
hercules-926cff033bb9533ae3d8615f8b90e2e443d0525b.zip
Add support for bitmask arrays in the item_db Upper 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 7a2c967fb..0ace20984 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -2037,7 +2037,7 @@ int itemdb_readdb_libconfig_sub(struct config_setting_t *it, int n, const char *
itemdb->jobmask2mapid(id.class_base, UINT64_MAX);
}
- if( itemdb->lookup_const(it, "Upper", &i32) && i32 >= 0 )
+ if (itemdb->lookup_const_mask(it, "Upper", &i32) && i32 >= 0)
id.class_upper = (unsigned int)i32;
else if( !inherit )
id.class_upper = ITEMUPPER_ALL;