Cache trait look-ups in the constructor where possible for Air activities/traits
This commit is contained in:
@@ -120,7 +120,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
Unloading = true;
|
||||
self.CancelActivity();
|
||||
if (helicopter != null)
|
||||
self.QueueActivity(new HeliLand(true));
|
||||
self.QueueActivity(new HeliLand(self, true));
|
||||
self.QueueActivity(new UnloadCargo(self, true));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user