From d4e216deafe02f02a2bd3da83e2e77b13bca8f6c Mon Sep 17 00:00:00 2001 From: Ryan Stecker Date: Fri, 1 Jun 2012 23:33:18 -0500 Subject: [PATCH] Fix KeyValue issue when multiple duplicate children exist. --- SteamKit2/SteamKit2/Types/KeyValue.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SteamKit2/SteamKit2/Types/KeyValue.cs b/SteamKit2/SteamKit2/Types/KeyValue.cs index 4cafda1f..69d9bddf 100644 --- a/SteamKit2/SteamKit2/Types/KeyValue.cs +++ b/SteamKit2/SteamKit2/Types/KeyValue.cs @@ -273,7 +273,7 @@ namespace SteamKit2 get { var child = this.Children - .SingleOrDefault( c => string.Equals( c.Name, key, StringComparison.OrdinalIgnoreCase ) ); + .FirstOrDefault( c => string.Equals( c.Name, key, StringComparison.OrdinalIgnoreCase ) ); if ( child == null ) {