more fixes

This commit is contained in:
Chris Forbes
2010-01-12 16:33:03 +13:00
parent 4ddf03fc64
commit 09517acf18
4 changed files with 8 additions and 8 deletions

View File

@@ -84,9 +84,8 @@ namespace OpenRa.Game
{
OreCapacity = Game.world.Actors
.Where(a => a.Owner == this && a.traits.Contains<StoresOre>())
.Select(a => a.LegacyInfo as LegacyBuildingInfo)
.Where(b => b != null)
.Sum(b => b.Storage);
.Select(a => a.Info.Traits.Get<StoresOreInfo>())
.Sum(b => b.Capacity);
}
void GiveAdvice(string advice)