diff --git a/src/ray.cpp b/src/ray.cpp index 6be28ab176ebfea63665fc191d403e3f27f65c55..9fa35945e3ec95e26405dfc8ab3946e8dae04ec5 100644 --- a/src/ray.cpp +++ b/src/ray.cpp @@ -3,7 +3,7 @@ ray::ray() {} ray::ray(const point3& origin, const vec3& direction, double amplitude, double opl, double index_of_refraction, int phase_flips, int max_bounces) -: orig(origin), dir(direction), amplitude(amplitude), optical_path(opl), refractive_index(index_of_refraction), +: orig(origin), dir(direction), optical_path(opl), amplitude(amplitude), refractive_index(index_of_refraction), phase_flips(phase_flips), source(0), bounces_left(max_bounces){ }