summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-31 21:05:35 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-31 21:05:35 +0000
commit0c3fe037b7df653d91b03bc19526dbc8b7e641cb (patch)
treee1b4f575caec62050d264de5abdf28f078c7a192 /src/map/pc.c
parent690ef2ae18deedd44bf4670eaf751c3888cb5a37 (diff)
downloadhercules-0c3fe037b7df653d91b03bc19526dbc8b7e641cb.tar.gz
hercules-0c3fe037b7df653d91b03bc19526dbc8b7e641cb.tar.bz2
hercules-0c3fe037b7df653d91b03bc19526dbc8b7e641cb.tar.xz
hercules-0c3fe037b7df653d91b03bc19526dbc8b7e641cb.zip
- Implemented script commands for mercenary items (mercenary_heal and mercenary_sc_start).
- Fixed a bug crashing server with mercenary. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13159 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 5e4954eeb..d25fbeee5 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3602,8 +3602,8 @@ int pc_setpos(struct map_session_data* sd, unsigned short mapindex, int x, int y
if( sd->md )
{
sd->md->bl.m = m;
- sd->md->bl.x = sd->hd->ud.to_x = x;
- sd->md->bl.y = sd->hd->ud.to_y = y;
+ sd->md->bl.x = sd->md->ud.to_x = x;
+ sd->md->bl.y = sd->md->ud.to_y = y;
sd->md->ud.dir = sd->ud.dir;
}