fixes fix in prev

This commit is contained in:
Chris Forbes
2010-03-06 16:36:53 +13:00
parent 5ae3f2c814
commit 8d9bbbe2b4

View File

@@ -91,9 +91,10 @@ namespace OpenRA.Traits
throw new InvalidOperationException( "UIM: Sanity check failed B" );
}
Actor[] noActors = { };
public IEnumerable<Actor> GetUnitsAt( int2 a )
{
if (!map.IsInMap(a)) return null;
if (!map.IsInMap(a)) return noActors;
return influence[ a.X, a.Y ];
}