From d6b2b155264e7a4b576c956530915f66d97b3eac Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 9 Feb 2017 19:00:26 -0500 Subject: [PATCH] Fix JSON parse bug with shop listing --- ShiftOS.WinForms/Applications/MUDControlCentre.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShiftOS.WinForms/Applications/MUDControlCentre.cs b/ShiftOS.WinForms/Applications/MUDControlCentre.cs index 927f50d..67c6c17 100644 --- a/ShiftOS.WinForms/Applications/MUDControlCentre.cs +++ b/ShiftOS.WinForms/Applications/MUDControlCentre.cs @@ -145,7 +145,7 @@ namespace ShiftOS.WinForms.Applications var contents = JsonConvert.DeserializeObject>(msg.Contents); if((string)contents["shop"] == CurrentShop.Name) { - CurrentShop.Items.Add((ShopItem)contents["itemdata"]); + CurrentShop.Items.Add(JsonConvert.DeserializeObject(JsonConvert.SerializeObject(contents["itemdata"]))); this.Invoke(new Action(PopulateShopView)); } }