From 6044ac79d97f53b417fb53f492732551ab4962a2 Mon Sep 17 00:00:00 2001 From: Bob Date: Thu, 26 Nov 2009 12:13:11 +1300 Subject: [PATCH] Trying to build dog now crashes properly --- OpenRa.Game/GameRules/TechTree.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRa.Game/GameRules/TechTree.cs b/OpenRa.Game/GameRules/TechTree.cs index dcdfd3c348..4a697e0415 100755 --- a/OpenRa.Game/GameRules/TechTree.cs +++ b/OpenRa.Game/GameRules/TechTree.cs @@ -63,9 +63,9 @@ namespace OpenRa.Game.GameRules public IEnumerable 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() ); } } }