From 91908c560dd2d50b561e204fdd787cae859aeab2 Mon Sep 17 00:00:00 2001 From: "Ian T. Jacobsen" Date: Wed, 5 Feb 2014 01:40:17 +0000 Subject: [PATCH] Small cleanup in Harvester::OnNotifyBlockingMove --- OpenRA.Mods.RA/Harvester.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();