summaryrefslogtreecommitdiff
path: root/src/map/pet.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-16 16:31:30 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-16 16:31:30 +0000
commit9b3a759edca28fa9445949aa0a3664d7dc8f6b2f (patch)
tree048521a0989fbea1662983dc2291d72688eb3e72 /src/map/pet.c
parentb035b0610206daff6e94f9d88297438e0ab93261 (diff)
downloadhercules-9b3a759edca28fa9445949aa0a3664d7dc8f6b2f.tar.gz
hercules-9b3a759edca28fa9445949aa0a3664d7dc8f6b2f.tar.bz2
hercules-9b3a759edca28fa9445949aa0a3664d7dc8f6b2f.tar.xz
hercules-9b3a759edca28fa9445949aa0a3664d7dc8f6b2f.zip
- @produce now can make any kind of equipment
- Fixed a warning on the mob_ai - Made HLIF_AVOID and HAMI_DEFENCE cause the status change on both caster and target. - AM_REST shouldn't be checking for a range now (since it's a self skill) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8318 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pet.c')
-rw-r--r--src/map/pet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index 3e63e1251..68b0510e0 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -410,11 +410,11 @@ int pet_data_init(struct map_session_data *sd, struct s_pet *pet)
pd->bl.x = pd->ud.to_x;
pd->bl.y = pd->ud.to_y;
pd->bl.id = npc_get_new_npc_id();
- pd->db = mob_db(pd->pet.class_);
+ pd->db = mob_db(pet->class_);
pd->bl.subtype = MONS;
pd->bl.type = BL_PET;
pd->msd = sd;
- status_set_viewdata(&pd->bl, pd->pet.class_);
+ status_set_viewdata(&pd->bl, pet->class_);
unit_dataset(&pd->bl);
pd->ud.dir = sd->ud.dir;
pd->last_thinktime = gettick();