summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-12-15 00:23:15 +0100
committerHaru <haru@dotalux.com>2015-12-28 18:35:59 +0100
commit09a2201e0d8563608a421378970f9d9ae6bc38bc (patch)
tree00e3dacdd6818e5665cc440f25ef183c7c9b9eb9 /src/map/itemdb.c
parent08fc3deb0234208b0abf3ed7fb4eadba44456fdf (diff)
downloadhercules-09a2201e0d8563608a421378970f9d9ae6bc38bc.tar.gz
hercules-09a2201e0d8563608a421378970f9d9ae6bc38bc.tar.bz2
hercules-09a2201e0d8563608a421378970f9d9ae6bc38bc.tar.xz
hercules-09a2201e0d8563608a421378970f9d9ae6bc38bc.zip
Replaced some numeric mob IDs with the proper constants (MOBID_TREASURE_BOX*)
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 54458d248..2894463de 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -2095,9 +2095,9 @@ void itemdb_reload(void) {
//Epoque's awesome @reloaditemdb fix - thanks! [Ind]
//- Fixes the need of a @reloadmobdb after a @reloaditemdb to re-link monster drop data
- for( i = 0; i < MAX_MOB_DB; i++ ) {
+ for (i = 0; i < MAX_MOB_DB; i++) {
struct mob_db *entry;
- if( !((i < 1324 || i > 1363) && (i < 1938 || i > 1946)) )
+ if ((i >= MOBID_TREASURE_BOX1 && i <= MOBID_TREASURE_BOX40) || (i >= MOBID_TREASURE_BOX41 && i <= MOBID_TREASURE_BOX49))
continue;
entry = mob->db(i);
for(d = 0; d < MAX_MOB_DROP; d++) {