summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ray.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/ray.h')
-rw-r--r--crawl-ref/source/ray.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/ray.h b/crawl-ref/source/ray.h
index cc7688571d..6748090348 100644
--- a/crawl-ref/source/ray.h
+++ b/crawl-ref/source/ray.h
@@ -17,9 +17,9 @@ struct ray_def
bool on_corner;
int cycle_idx;
- ray_def() {}
+ ray_def() : on_corner(false), cycle_idx(-1) {}
ray_def(const geom::ray& _r)
- : r(_r), on_corner(false), cycle_idx(0) {}
+ : r(_r), on_corner(false), cycle_idx(-1) {}
coord_def pos() const;
bool advance();