aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/Applications')
-rw-r--r--ShiftOS.WinForms/Applications/MUDControlCentre.cs2
1 files changed, 1 insertions, 1 deletions
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<Dictionary<string, object>>(msg.Contents);
if((string)contents["shop"] == CurrentShop.Name)
{
- CurrentShop.Items.Add((ShopItem)contents["itemdata"]);
+ CurrentShop.Items.Add(JsonConvert.DeserializeObject<ShopItem>(JsonConvert.SerializeObject(contents["itemdata"])));
this.Invoke(new Action(PopulateShopView));
}
}