diff options
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 1802500cc..cd1fe1cc7 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2007,10 +2007,8 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) if(sd) { // process script-granted extra drop bonuses int itemid = 0; - for (i = 0; i < sd->add_drop_count; i++) + for (i = 0; i < ARRAYLENGTH(sd->add_drop) && (sd->add_drop[i].id || sd->add_drop[i].group); i++) { - if (sd->add_drop[i].id < 0) - continue; if (sd->add_drop[i].race & (1<<status->race) || sd->add_drop[i].race & 1<<(status->mode&MD_BOSS?RC_BOSS:RC_NONBOSS)) { |