summaryrefslogtreecommitdiff
path: root/src/simulation/elements/STOR.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation/elements/STOR.cpp')
-rw-r--r--src/simulation/elements/STOR.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/simulation/elements/STOR.cpp b/src/simulation/elements/STOR.cpp
index c6064cd..fd82b7a 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;