Turn Actor.GetCurrentActivity into a property
This commit is contained in:
@@ -794,8 +794,7 @@ namespace OpenRA.Mods.Common.AI
|
||||
|
||||
if (!harvester.IsIdle)
|
||||
{
|
||||
var act = harvester.GetCurrentActivity();
|
||||
|
||||
var act = harvester.CurrentActivity;
|
||||
if (act.NextActivity == null || act.NextActivity.GetType() != typeof(FindResources))
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user