Skip to content

Commit

Permalink
Merge pull request #61 from Pythyu/shopping-list-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauNeko authored Sep 11, 2022
2 parents 0b09ebc + 5d87456 commit 50f632f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions MarketBoardPlugin/GUI/MarketBoardWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ void SelectClassJob(ClassJob classJob)

if (ImGui.Selectable("Add to the shopping list") && this.marketData != null && this.selectedWorld >= 0)
{
this.shoppingList.Add(new SavedItem(item, this.marketData.Listings.OrderBy(l => l.PricePerUnit).ToList()[0].PricePerUnit, this.worldList[this.selectedWorld].Item2));
MarketDataListing itm = this.marketData.Listings.OrderBy(l => l.PricePerUnit).ToList()[0];
this.shoppingList.Add(new SavedItem(item, itm.PricePerUnit, itm.WorldName));
}

ImGui.EndPopup();
Expand Down Expand Up @@ -627,7 +628,7 @@ void SelectClassJob(ClassJob classJob)
}
else
{
ImGui.Text(history.PricePerUnit.ToString("N0"));
ImGui.Text(history.Total.ToString("N0"));
}

ImGui.NextColumn();
Expand Down

0 comments on commit 50f632f

Please sign in to comment.