Permalink
Browse files

added expensive but useful assert

  • Loading branch information...
1 parent d4fe537 commit 24572ed3296c91e7a27c9c8fd38ffd6c05eb3522 @rtv committed Dec 29, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 libstage/world.cc
View
@@ -863,10 +863,10 @@ RaytraceResult World::Raytrace( const Ray& r )
n > 0 )
{
FOR_EACH( it, c->blocks[layer] )
- {
+ {
Block* block( *it );
- // assert( block );
-
+ assert( block );
+
// skip if not in the right z range
if( r.ztest &&
( r.origin.z < block->global_z.min ||

0 comments on commit 24572ed

Please sign in to comment.