summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/travel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc
index 6b4b25527e..1dd3383e27 100644
--- a/crawl-ref/source/travel.cc
+++ b/crawl-ref/source/travel.cc
@@ -1989,7 +1989,7 @@ void find_travel_pos(const coord_def& youpos,
// ?#@ --> Pick x instead.
// Only applies to diagonal moves.
- if (rmode == RMODE_TRAVEL && move_x != 0 && move_y != 0)
+ if (rmode == RMODE_TRAVEL && *move_x != 0 && *move_y != 0)
{
coord_def unseen = coord_def();
for (adjacent_iterator ai(dest); ai; ++ai)