This commit is contained in:
Chris Forbes
2010-08-10 21:26:44 +12:00
parent 3af0d2f6a4
commit eb0c895e2c

View File

@@ -70,7 +70,7 @@ namespace OpenRA.Traits
{
public static bool IsPrimaryBuilding(this Actor a)
{
var pb = a.traits.Get<PrimaryBuilding>();
var pb = a.traits.GetOrDefault<PrimaryBuilding>();
return pb != null && pb.IsPrimary;
}
}