diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-09 10:15:39 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-09 10:15:39 +0200 |
commit | 477b8798b39a01bf4a73697eefe0ae131a12d47d (patch) | |
tree | 7bde0d5202af26946bf0b3d7fca3b767291332df /crawl-ref/source/ray.cc | |
parent | f54c573cd027fc1c86e206ada722ce8a76525f4a (diff) | |
download | crawl-ref-477b8798b39a01bf4a73697eefe0ae131a12d47d.tar.gz crawl-ref-477b8798b39a01bf4a73697eefe0ae131a12d47d.zip |
Initialize ray.full_idx to -1 and remove outdated(?) valgrind intialization lines.
Diffstat (limited to 'crawl-ref/source/ray.cc')
-rw-r--r-- | crawl-ref/source/ray.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/ray.cc b/crawl-ref/source/ray.cc index 35b17ab104..a4bb3b21f0 100644 --- a/crawl-ref/source/ray.cc +++ b/crawl-ref/source/ray.cc @@ -102,9 +102,8 @@ int shoot_ray(double accx, double accy, const double slope, return cellnum; } - -ray_def::ray_def() : accx(0.0), accy(0.0), slope(0.0), quadrant(0), - fullray_idx(0) +ray_def::ray_def() + : accx(0.0), accy(0.0), slope(0.0), quadrant(0), fullray_idx(-1) { } |