diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-12-08 14:43:47 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-12-08 14:43:47 +0000 |
commit | 06d3ecaabad6e81d0c6478d59632d0b4d4673423 (patch) | |
tree | ef6c1ab2601cb9d929658af53634640fe961399b /src | |
parent | 84f97d418a39f8c4d95757623a08fbd02196e5a2 (diff) | |
download | hercules-06d3ecaabad6e81d0c6478d59632d0b4d4673423.tar.gz hercules-06d3ecaabad6e81d0c6478d59632d0b4d4673423.tar.bz2 hercules-06d3ecaabad6e81d0c6478d59632d0b4d4673423.tar.xz hercules-06d3ecaabad6e81d0c6478d59632d0b4d4673423.zip |
- Fixed crash when looters became full.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9437 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-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 2911572cb..d357c1199 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1253,7 +1253,7 @@ static int mob_ai_sub_hard(struct block_list *bl,va_list ap) } else { //Destroy first looted item... if (md->lootitem[0].card[0] == CARD0_PET) intif_delete_petdata( MakeDWord(md->lootitem[0].card[1],md->lootitem[0].card[2]) ); - memmove(&md->lootitem[0], &md->lootitem[1], sizeof(md->lootitem) - sizeof(md->lootitem[0])); + memmove(&md->lootitem[0], &md->lootitem[1], (LOOTITEM_SIZE-1)*sizeof(md->lootitem[0])); memcpy (&md->lootitem[LOOTITEM_SIZE-1], &fitem->item_data, sizeof(md->lootitem[0])); } if (pcdb_checkid(md->vd->class_)) |