use generic GetValue<> in VoiceInfo

This commit is contained in:
Chris Forbes
2011-07-09 22:39:24 +12:00
committed by Paul Chote
parent 914b3e1bee
commit 913ca89d4f

View File

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