clean up remaining non-generic GetValue uses

This commit is contained in:
Chris Forbes
2011-07-09 22:41:37 +12:00
committed by Paul Chote
parent 913ca89d4f
commit 60a3f170ab
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ namespace OpenRA.GameRules
return y.NodesDict.ContainsKey( "Versus" )
? y.NodesDict[ "Versus" ].NodesDict.ToDictionary(
a => a.Key,
a => (float)FieldLoader.GetValue( "(value)", typeof( float ), a.Value.Value ) )
a => FieldLoader.GetValue<float>( "(value)", a.Value.Value ) )
: new Dictionary<string, float>();
}
}

View File

@@ -32,7 +32,7 @@ namespace OpenRA.Widgets
public static T Get<T>(string key)
{
return (T)FieldLoader.GetValue( key, typeof(T), data[key] );
return FieldLoader.GetValue<T>( key, data[key] );
}
}
}