mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-26 17:34:35 +02:00
fix crash when SOAP gets changed into another element, fixes #186
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user