Permalink
Browse files

fix crash when SOAP gets changed into another element, fixes #186

  • Loading branch information...
jacob1 committed Apr 12, 2014
1 parent 35d97eb commit 75034de5a40effc76bcec1ae5f1772ebf62ffd22
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/simulation/Simulation.cpp
@@ -2827,7 +2827,7 @@ int Simulation::create_part(int p, int x, int y, int tv)
}
else if (parts[p].type == PT_SOAP)
{
detach(i);
detach(p);
}
i = p;
}

0 comments on commit 75034de

Please sign in to comment.