summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-30 04:58:52 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-30 04:58:52 +0000
commitcafe5e222686411dbfd080eb1efa1083850e60c2 (patch)
tree29b799df189a37b0c763728607075ff9825fbd14 /src
parent5b846b39ee8b8e247c5132a21761192cd61d87d0 (diff)
downloadhercules-cafe5e222686411dbfd080eb1efa1083850e60c2.tar.gz
hercules-cafe5e222686411dbfd080eb1efa1083850e60c2.tar.bz2
hercules-cafe5e222686411dbfd080eb1efa1083850e60c2.tar.xz
hercules-cafe5e222686411dbfd080eb1efa1083850e60c2.zip
- Fixed possible crash when mob drop logs is enabled.
- The drop log tables are useless now that mobs have more slots, that thing needs to be rewritten... git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6391 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/mob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index ee9c60e66..e98917ae4 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1923,7 +1923,7 @@ int mob_damage(struct block_list *src,struct mob_data *md,int damage,int type)
struct item_drop_list *dlist = ers_alloc(item_drop_list_ers, struct item_drop_list);
struct item_drop *ditem;
int drop_ore = -1, drop_items = 0; //slot N for DROP LOG, number of dropped items
- int log_item[10]; //8 -> 10 Lupus
+ int log_item[MAX_MOB_DROP];
memset(&log_item,0,sizeof(log_item));
dlist->m = md->bl.m;
dlist->x = md->bl.x;