From d72b2efe93e1f3e9a0dea4b065d95936b37993b0 Mon Sep 17 00:00:00 2001 From: ajarn Date: Tue, 21 Dec 2004 04:34:59 +0000 Subject: update git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@697 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/map/npc.c b/src/map/npc.c index 796b23c66..e8ead8d29 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1998,7 +1998,6 @@ int npc_parse_mob(char *w1,char *w2,char *w3,char *w4) md->base_class = md->class = class; } - md->base_class = md->class = class; md->bl.id=npc_get_new_npc_id(); md->m =m; md->x0=x; @@ -2012,9 +2011,9 @@ int npc_parse_mob(char *w1,char *w2,char *w3,char *w4) md->timer = -1; md->target_id=0; md->attacked_id=0; - md->speed=mob_db[class].speed; + md->speed=mob_db[md->base_class].speed; - if (mob_db[class].mode&0x02) + if (mob_db[md->base_class].mode&0x02) md->lootitem=(struct item *)aCalloc(LOOTITEM_SIZE,sizeof(struct item)); else md->lootitem=NULL; -- cgit v1.2.3-70-g09d2