queries dies

This commit is contained in:
Chris Forbes
2011-03-17 22:05:53 +13:00
parent caa52b2780
commit a3994df925
34 changed files with 52 additions and 66 deletions

View File

@@ -60,7 +60,7 @@ namespace OpenRA.Mods.RA.Buildings
if (player == null)
return ret;
foreach (var b in player.World.Queries.WithTrait<BuildingInfo>()
foreach (var b in player.World.ActorsWithTrait<BuildingInfo>()
.Where(a => a.Actor.Owner == player).Select(a => a.Actor))
{
ret[b.Info.Name].Add(b);