summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/terrain.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-07-20 15:08:11 -0400
committerNeil Moore <neil@s-z.org>2014-07-20 15:08:11 -0400
commitc0b7207e917e7787ce182b86de917ab0d83ee27c (patch)
treedd95fe9828b47c4bf98392760b6b0d92ec6e6fd2 /crawl-ref/source/terrain.cc
parentc471ff7bd47c870ef79b61c53c1cebdd7e7aa3ba (diff)
downloadcrawl-ref-c0b7207e917e7787ce182b86de917ab0d83ee27c.tar.gz
crawl-ref-c0b7207e917e7787ce182b86de917ab0d83ee27c.zip
Make a return value clearer.
Diffstat (limited to 'crawl-ref/source/terrain.cc')
-rw-r--r--crawl-ref/source/terrain.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/terrain.cc b/crawl-ref/source/terrain.cc
index 262ccd9e32..2236bd8cf5 100644
--- a/crawl-ref/source/terrain.cc
+++ b/crawl-ref/source/terrain.cc
@@ -694,8 +694,7 @@ static coord_def _dgn_find_nearest_square(
iter = !iter;
}
- coord_def unfound;
- return unfound;
+ return coord_def(0, 0); // Not found.
}
static bool _item_safe_square(const coord_def &pos, void *item)