Cleanup: Idle activity now reuses itself instead of returning null (causing another Idle object to be created)
This commit is contained in:
@@ -12,6 +12,6 @@ namespace OpenRA.Traits.Activities
|
||||
{
|
||||
public class Idle : CancelableActivity
|
||||
{
|
||||
public override IActivity Tick(Actor self) { return NextActivity; }
|
||||
public override IActivity Tick(Actor self) { return NextActivity ?? this; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user