Skip to content

Commit

Permalink
fix invisible PHOT bug when going through GLAS sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Apr 26, 2014
1 parent 270a383 commit 097e496
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/simulation/Simulation.cpp
Expand Up @@ -4292,7 +4292,8 @@ void Simulation::update_particles_i(int start, int inc)
}

r = get_wavelength_bin(&parts[i].ctype);
if (r == -1) {
if (r == -1 || !(parts[i].ctype&0x3FFFFFFF))
{
kill_part(i);
continue;
}
Expand Down

0 comments on commit 097e496

Please sign in to comment.