Skip to content

Commit

Permalink
fix crash when SOAP gets changed into another element, fixes #186
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Apr 12, 2014
1 parent 35d97eb commit 75034de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulation/Simulation.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 75034de

Please sign in to comment.