Use actor/target generations to invalidate targets on ownership change
This commit is contained in:
@@ -273,6 +273,7 @@ namespace OpenRA
|
||||
// momentarily remove from world so the ownership queries don't get confused
|
||||
w.Remove(this);
|
||||
Owner = newOwner;
|
||||
Generation++;
|
||||
w.Add(this);
|
||||
|
||||
foreach (var t in this.TraitsImplementing<INotifyOwnerChanged>())
|
||||
|
||||
Reference in New Issue
Block a user