summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/los.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/los.cc')
-rw-r--r--crawl-ref/source/los.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc
index 5c9f9b74c6..13ce0e0608 100644
--- a/crawl-ref/source/los.cc
+++ b/crawl-ref/source/los.cc
@@ -592,6 +592,9 @@ bool _find_ray_se(const coord_def& target, ray_def& ray,
if (!bds(target))
return false;
+ // Ensure the precalculations have been done.
+ raycast();
+
const std::vector<cellray> &min = min_cellrays(target);
ASSERT(min.size() > 0);
cellray c = min[0]; // XXX: const cellray &c ?