From e9d65198001798f10ce66d6144ca990369515224 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Tue, 7 Jul 2015 20:22:03 -0400 Subject: [PATCH] small improvement to 7d7bf5eff6c8 --- src/simulation/elements/CLST.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } }