diff options
-rw-r--r-- | crawl-ref/source/view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index 8cc87ab02b..d222a7484e 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -1904,7 +1904,7 @@ static int find_feature( const std::vector<coord_def>& features, if (firstx != -1) { *move_x = firstx - (start_x + curs_x); *move_y = firsty - (start_y + curs_y); - return matchcount; + return firstmatch; } return 0; } |