GUN works; fixes dumb breakage in AttackBase

This commit is contained in:
Chris Forbes
2009-12-06 22:00:57 +13:00
parent 15cf93cdbc
commit 684fae36c2
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ namespace OpenRa.Game.Traits
public void DoAttack(Actor self)
{
var unit = self.traits.Get<Unit>();
var unit = self.traits.GetOrDefault<Unit>();
if (self.Info.Primary != null && CheckFire(self, unit, self.Info.Primary, ref primaryFireDelay,
self.Info.PrimaryOffset))