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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 75ce05530..d76f83337 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3226,7 +3226,7 @@ int pc_walktodir(struct map_session_data *sd,int step)
to_x += dir_x;
to_y += dir_y;
}
- unit_walktoxy(&sd->bl, sd->to_x, sd->to_y, 1);
+ unit_walktoxy(&sd->bl, to_x, to_y, 1);
return 1;
}