Permalink
Browse files

fix invisible PHOT bug when going through GLAS sometimes

  • Loading branch information...
jacob1 committed Apr 26, 2014
1 parent 270a383 commit 097e4968e02530b6c9b783b089d8263b5c115b36
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/simulation/Simulation.cpp
@@ -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;
}

0 comments on commit 097e496

Please sign in to comment.