Check for null in Turreted.StopAiming
This commit is contained in:
committed by
Oliver Brakmann
parent
74fa8752c9
commit
51ec97fb2c
@@ -158,7 +158,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
public void StopAiming(Actor self)
|
public void StopAiming(Actor self)
|
||||||
{
|
{
|
||||||
if (attack.IsAiming)
|
if (attack != null && attack.IsAiming)
|
||||||
attack.OnStopOrder(self);
|
attack.OnStopOrder(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user