diff -r f3abdaa2e8fb -r c005054bf4c1 src/raytracer.cc --- a/src/raytracer.cc Sun May 31 16:53:05 2009 +0200 +++ b/src/raytracer.cc Sun May 31 23:06:03 2009 +0200 @@ -27,6 +27,7 @@ #include #include #include +#include #include #include "raytracer.h" @@ -478,7 +479,7 @@ for (;;) { my_count = 0; - while ( more_samples = sampler->nextSample(&sample_queue[my_pos++]) ) + while ( (more_samples = sampler->nextSample(&sample_queue[my_pos++])) != 0 ) { my_count++; if (my_pos >= sample_queue_size)