This commit is contained in:
Chris Forbes
2010-03-16 19:51:52 +13:00
parent b504fb53e6
commit 7af5ef2a65

View File

@@ -35,8 +35,7 @@ namespace OpenRA
static Widget NewWidget( string widgetType ) static Widget NewWidget( string widgetType )
{ {
if( widgetType.Contains( "@" ) ) widgetType = widgetType.Split('@')[0];
widgetType = widgetType.Substring( 0, widgetType.IndexOf( "@" ) );
foreach (var mod in Game.ModAssemblies) foreach (var mod in Game.ModAssemblies)
{ {