summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/ray.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/ray.cc b/crawl-ref/source/ray.cc
index e9187837f1..9a0810d78d 100644
--- a/crawl-ref/source/ray.cc
+++ b/crawl-ref/source/ray.cc
@@ -104,6 +104,7 @@ static coord_def round_vec(const geom::vector &v)
coord_def ray_def::pos() const
{
+ ASSERT(_valid());
// XXX: pretty arbitrary if we're just on a corner.
return (round_vec(r.start));
}