From b3037857f034c308f8e61172b5bdbbee8689aa1d Mon Sep 17 00:00:00 2001 From: cracker64 Date: Fri, 11 Jan 2013 23:06:42 -0500 Subject: [PATCH] Detach soap before going into STOR, fixes 1065982 (mostly) --- src/simulation/elements/STOR.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/simulation/elements/STOR.cpp b/src/simulation/elements/STOR.cpp index c6064cd76..fd82b7a9c 100644 --- a/src/simulation/elements/STOR.cpp +++ b/src/simulation/elements/STOR.cpp @@ -61,6 +61,7 @@ int Element_STOR::update(UPDATE_FUNC_ARGS) continue; if (!parts[i].tmp && !parts[i].life && (r&0xFF)!=PT_STOR && !(sim->elements[(r&0xFF)].Properties&TYPE_SOLID) && (!parts[i].ctype || (r&0xFF)==parts[i].ctype)) { + if ((r&0xFF) == PT_SOAP) sim->detach(r>>8); parts[i].tmp = parts[r>>8].type; parts[i].temp = parts[r>>8].temp; parts[i].tmp2 = parts[r>>8].life;