diff options
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 30a359bc7..0eb1a9833 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -3894,7 +3894,7 @@ bool mob_parse_dbrow(char** str) { if (k == MAX_SEARCH) continue; - if (id->mob[k].id != class_) + if (id->mob[k].id != class_ && k != MAX_SEARCH - 1) memmove(&id->mob[k+1], &id->mob[k], (MAX_SEARCH-k-1)*sizeof(id->mob[0])); id->mob[k].chance = db->dropitem[i].p; id->mob[k].id = class_; |