Browse Source

Fixing a small bug

Panagiotis Christopoulos Charitos 13 years ago
parent
commit
cb72c2b530
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/scene/Sector.cpp

+ 1 - 1
src/scene/Sector.cpp

@@ -316,7 +316,7 @@ void SectorGroup::doVisibilityTests(SceneNode& sn, VisibilityTest test,
 	visible->lights.reserve(lightsCount);
 	visible->lights.reserve(lightsCount);
 
 
 	// Iterate previous test results and append to the combined one
 	// Iterate previous test results and append to the combined one
-	if(r != nullptr)
+	if(r == nullptr)
 	{
 	{
 		for(VisibilityTestResults& testResult : testResults)
 		for(VisibilityTestResults& testResult : testResults)
 		{
 		{