This commit is contained in:
Paul Chote
2011-06-21 19:55:43 +12:00
parent af4093f380
commit 5e220a9ac7

View File

@@ -146,6 +146,10 @@ namespace OpenRA.Traits
public void Destroy(int2 p)
{
// Don't break other users of CustomTerrain if there are no resources
if (content[p.X, p.Y].type == null)
return;
content[p.X, p.Y].type = null;
content[p.X, p.Y].image = null;
content[p.X, p.Y].density = 0;