summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ray.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-31 20:16:24 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-01 21:45:26 +0100
commitb81b08f9aa02afd4a8195bf8d8b846b7de0788cd (patch)
treeee08c7ec4fdb6a2d572bfa241fb590ac6749e3c8 /crawl-ref/source/ray.h
parentf6cf2bbe461eb50243c279f5bc4b6efe1ab9c4da (diff)
downloadcrawl-ref-b81b08f9aa02afd4a8195bf8d8b846b7de0788cd.tar.gz
crawl-ref-b81b08f9aa02afd4a8195bf8d8b846b7de0788cd.zip
Add a bunch of ASSERTs to ray.cc.
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();