Fix the tech tree not refreshing properly on owner change

This commit is contained in:
abcdefg30
2016-04-30 13:15:51 +02:00
parent ee82a8c3a9
commit 8c80b61897
2 changed files with 4 additions and 4 deletions

View File

@@ -301,11 +301,11 @@ namespace OpenRA
Owner = newOwner;
Generation++;
if (wasInWorld)
w.Add(this);
foreach (var t in TraitsImplementing<INotifyOwnerChanged>())
t.OnOwnerChanged(this, oldOwner, newOwner);
if (wasInWorld)
w.Add(this);
});
}