Check for null in Turreted.StopAiming

This commit is contained in:
TheChosenEvilOne
2018-11-09 12:44:28 +02:00
committed by Oliver Brakmann
parent 74fa8752c9
commit 51ec97fb2c

View File

@@ -158,7 +158,7 @@ namespace OpenRA.Mods.Common.Traits
public void StopAiming(Actor self)
{
if (attack.IsAiming)
if (attack != null && attack.IsAiming)
attack.OnStopOrder(self);
}