summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorajarn <ajarn@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-21 04:34:59 +0000
committerajarn <ajarn@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-21 04:34:59 +0000
commitd72b2efe93e1f3e9a0dea4b065d95936b37993b0 (patch)
tree7bce4f2c8fa5971c5febe4c60a469ce7b6bea948 /src/map/npc.c
parentd2d96d062bdf5112707f8e2b9e4267c0f6a00d73 (diff)
downloadhercules-d72b2efe93e1f3e9a0dea4b065d95936b37993b0.tar.gz
hercules-d72b2efe93e1f3e9a0dea4b065d95936b37993b0.tar.bz2
hercules-d72b2efe93e1f3e9a0dea4b065d95936b37993b0.tar.xz
hercules-d72b2efe93e1f3e9a0dea4b065d95936b37993b0.zip
update
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@697 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c5
1 files 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;