Merge pull request #5801 from Mailaender/building-influence-crash

Fixed a crash when trying to capture husks that have been destroyed.
This commit is contained in:
Paul Chote
2014-07-05 11:36:54 +12:00
4 changed files with 11 additions and 1 deletions

View File

@@ -217,6 +217,9 @@ namespace OpenRA
{
World.AddFrameEndTask(w =>
{
if (this.Destroyed)
return;
var oldOwner = Owner;
// momentarily remove from world so the ownership queries don't get confused