Skip to content

Commit

Permalink
fix debug zeroth particle (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
krawthekrow authored and jacob1 committed Nov 7, 2016
1 parent 477d2be commit 3a3254f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debug/ParticleDebug.cpp
Expand Up @@ -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";
Expand Down

0 comments on commit 3a3254f

Please sign in to comment.