From f4421d89ea117e1da530d42538938829a92c684b Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 15 Jun 2010 18:17:40 +1200 Subject: [PATCH] Fix tooltip crash on non-buildable prereq --- OpenRA.Game/Widgets/BuildPaletteWidget.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Widgets/BuildPaletteWidget.cs b/OpenRA.Game/Widgets/BuildPaletteWidget.cs index ff92712470..350fb87c23 100644 --- a/OpenRA.Game/Widgets/BuildPaletteWidget.cs +++ b/OpenRA.Game/Widgets/BuildPaletteWidget.cs @@ -341,7 +341,7 @@ namespace OpenRA.Widgets if( a[ 0 ] == '@' ) return "any " + a.Substring( 1 ); else - return Rules.Info[ a.ToLowerInvariant() ].Traits.Get().Description; + return Rules.Info[ a.ToLowerInvariant() ].Traits.Get().Description; } static void HandleBuildPalette( World world, string item, bool isLmb )