mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-02-02 06:17:34 +00:00
Fix JSON parse bug with shop listing
This commit is contained in:
parent
f0b7634d52
commit
d6b2b15526
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue