Fix CRAY bug that deletes particle 0

This commit is contained in:
jacob1 2013-03-25 12:36:04 -03:00
parent 9ef7a4c1a5
commit 010f7790eb

View File

@ -105,7 +105,7 @@ int Element_CRAY::update(UPDATE_FUNC_ARGS)
colored = wavelengthToDecoColour(parts[r>>8].ctype);
} else if ((r&0xFF) == PT_CRAY || nostop) {
docontinue = 1;
} else if(destroy && ((r&0xFF) != PT_DMND)) {
} else if(destroy && r && ((r&0xFF) != PT_DMND)) {
sim->kill_part(r>>8);
if(!--partsRemaining)
docontinue = 0;