Cleanup: Idle activity now reuses itself instead of returning null (causing another Idle object to be created)

This commit is contained in:
geckosoft
2010-11-12 06:46:53 +01:00
committed by Bob
parent 0e6dbe28a8
commit 0e750a3f25

View File

@@ -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; }
}
}