abort change owner when the actor is destroyed

fixes #5638
This commit is contained in:
Matthias Mailänder
2014-07-03 09:19:51 +02:00
parent 3c3f85a272
commit 04f1ebe969

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