diff --git a/src/simulation/elements/CLST.cpp b/src/simulation/elements/CLST.cpp index 214c200af..025f01f1b 100644 --- a/src/simulation/elements/CLST.cpp +++ b/src/simulation/elements/CLST.cpp @@ -62,8 +62,7 @@ int Element_CLST::update(UPDATE_FUNC_ARGS) { if (!(rand()%1500)) { - parts[i].tmp = 0; - sim->part_change_type(i,x,y,PT_PSTS); + sim->create_part(i, x, y, PT_PSTS); sim->kill_part(r>>8); } }