From c5034dd01a69a13ba860f1056bc740b3f0ec2655 Mon Sep 17 00:00:00 2001 From: Saveliy Skresanov Date: Fri, 12 Jan 2024 23:34:34 +0700 Subject: [PATCH] Fix clone producing RSST(RSST). --- src/simulation/elements/RSST.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/simulation/elements/RSST.cpp b/src/simulation/elements/RSST.cpp index 988390546..2f0c5eb90 100644 --- a/src/simulation/elements/RSST.cpp +++ b/src/simulation/elements/RSST.cpp @@ -77,7 +77,8 @@ int update(UPDATE_FUNC_ARGS) // Set RSST ctype from nearby clone if((TYP(r) == PT_CLNE) || (TYP(r) == PT_PCLN)) { - parts[i].ctype = parts[ID(r)].ctype; + if(parts[ID(r)].ctype != PT_RSST) + parts[i].ctype = parts[ID(r)].ctype; } } }