summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r--crawl-ref/source/tags.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc
index d88f2dcda1..bbfc298549 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -1042,8 +1042,9 @@ static void tag_read_you(struct tagHeader &th, char minorVersion)
you.base_magic_points = unmarshallShort(th);
you.base_magic_points2 = unmarshallShort(th);
- you.x_pos = unmarshallShort(th);
- you.y_pos = unmarshallShort(th);
+ const int x = unmarshallShort(th);
+ const int y = unmarshallShort(th);
+ you.moveto(x, y);
unmarshallString(th, you.class_name, 30);