Skip to content

Commit

Permalink
Fixed: Do not render particles in a NULL sector
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Apr 21, 2012
1 parent 90466ba commit ff821f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/p_particle.c
Expand Up @@ -195,7 +195,7 @@ static int linkGeneratorParticles(ptcgen_t* gen, void* parameters)
/// @todo Overkill?
for(i = 0; i < gen->count; ++i)
{
if(gen->ptcs[i].stage < 0) continue;
if(gen->ptcs[i].stage < 0 || !gen->ptcs[i].sector) continue;

/// @todo Do not assume sector is from the CURRENT map.
Generators_LinkToList(gens, gen, GameMap_SectorIndex(theMap, gen->ptcs[i].sector));
Expand Down

0 comments on commit ff821f5

Please sign in to comment.