Fix tooltip crash on non-buildable prereq

This commit is contained in:
Paul Chote
2010-06-15 18:17:40 +12:00
parent 48cf08dc7d
commit f4421d89ea

View File

@@ -341,7 +341,7 @@ namespace OpenRA.Widgets
if( a[ 0 ] == '@' )
return "any " + a.Substring( 1 );
else
return Rules.Info[ a.ToLowerInvariant() ].Traits.Get<BuildableInfo>().Description;
return Rules.Info[ a.ToLowerInvariant() ].Traits.Get<ValuedInfo>().Description;
}
static void HandleBuildPalette( World world, string item, bool isLmb )