diff --git a/OpenRA.Mods.RA/Harvester.cs b/OpenRA.Mods.RA/Harvester.cs index 3829cd51d1..2222a5186c 100644 --- a/OpenRA.Mods.RA/Harvester.cs +++ b/OpenRA.Mods.RA/Harvester.cs @@ -183,9 +183,9 @@ namespace OpenRA.Mods.RA public void OnNotifyBlockingMove(Actor self, Actor blocking) { // I'm blocking someone else from moving to my location: - Activity act = self.GetCurrentActivity(); + var act = self.GetCurrentActivity(); // If I'm just waiting around then get out of the way: - if (act == null || act.GetType() == typeof(Wait)) + if (act is Wait) { self.CancelActivity(); var mobile = self.Trait();