Permalink
Browse files

fix debug zeroth particle (#352)

  • Loading branch information...
krawthekrow authored and jacob1 committed Nov 7, 2016
1 parent 477d2be commit 3a3254f38bbd76bdaa13661726abee0656ad6156
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/debug/ParticleDebug.cpp
@@ -32,7 +32,7 @@ void ParticleDebug::Debug(int mode, int x, int y)
}
else if (mode == 1)
{
if (x < 0 || x >= XRES || y < 0 || y >= YRES || !(i = (sim->pmap[y][x]>>8)) || i < debug_currentParticle)
if (x < 0 || x >= XRES || y < 0 || y >= YRES || !sim->pmap[y][x] || (i = (sim->pmap[y][x]>>8)) < debug_currentParticle)
{
i = NPART;
logmessage << "Updated particles from #" << debug_currentParticle << " to end, updated sim";

0 comments on commit 3a3254f

Please sign in to comment.