Use already cached mobile in MobileProperties.Scatter

This commit is contained in:
reaperrr
2016-04-24 18:54:21 +02:00
parent b497869993
commit 828dc61b67

View File

@@ -53,7 +53,7 @@ namespace OpenRA.Mods.Common.Scripting
[Desc("Leave the current position in a random direction.")]
public void Scatter()
{
Self.Trait<Mobile>().Nudge(Self, Self, true);
mobile.Nudge(Self, Self, true);
}
[ScriptActorPropertyActivity]