diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 60ccfd843..ebd6813d2 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -1771,7 +1771,7 @@ int Simulation::CreatePartFlags(int x, int y, int c, int flags) (photons[y][x] && TYP(photons[y][x]) == replaceModeSelected)) { if (c) - create_part(photons[y][x] ? ID(photons[y][x]) : ID(pmap[y][x]), x, y, TYP(c)); + create_part(photons[y][x] ? ID(photons[y][x]) : ID(pmap[y][x]), x, y, TYP(c), ID(c)); else delete_part(x, y); }