Fixed SEGV in case the underlying simulation data does not support uniqueID

This commit is contained in:
Guilhem Lavaux 2012-11-20 19:21:21 -06:00
parent 7f8f0441b0
commit 2696ad20d1

View file

@ -506,7 +506,7 @@ void makeBox(SimuData *simu, double *efac, SimuData *&boxed, generateMock_info&
assert(boxed->Pos[j][k] < 1);
}
particle_id[k] = simu->Id[i]-1;
uniqueID[k] = simu_uniqueID[i];
uniqueID[k] = (simu_uniqueID != 0) ? simu_uniqueID[i] : 0;
expansion_fac[k] = efac[i];
k++;
}