Trying to build dog now crashes properly

This commit is contained in:
Bob
2009-11-26 12:13:11 +13:00
parent 70b26ace6c
commit 6044ac79d9

View File

@@ -63,9 +63,9 @@ namespace OpenRa.Game.GameRules
public IEnumerable<string> UnitBuiltAt( UnitInfo info )
{
if( info.BuiltAt.Length != 0 )
return info.BuiltAt;
return info.BuiltAt.Select( x => x.ToLowerInvariant() );
else
return producesIndex[ Rules.UnitCategory[ info.Name ] ].Select( x => x.Name );
return producesIndex[ Rules.UnitCategory[ info.Name ] ].Select( x => x.Name.ToLowerInvariant() );
}
}
}