summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
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;
}