From 840d4d96f4670d040e9eefda5492eeba519e3770 Mon Sep 17 00:00:00 2001 From: staphen Date: Wed, 27 Nov 2024 14:56:23 -0500 Subject: [PATCH] Fix value of items bought from Wirt's shop --- Source/stores.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/stores.cpp b/Source/stores.cpp index 5016e557b62..469e4058189 100644 --- a/Source/stores.cpp +++ b/Source/stores.cpp @@ -1708,11 +1708,11 @@ void BoyEnter() StartStore(TalkID::Gossip); } -void BoyBuyItem(Item &item) +void BoyBuyItem(Item &item, int itemPrice) { - TakePlrsMoney(item._iIvalue); + TakePlrsMoney(itemPrice); StoreAutoPlace(item, true); - BoyItem.clear(); + item.clear(); OldActiveStore = TalkID::Boy; CalcPlrInv(*MyPlayer, true); OldTextLine = 12; @@ -1836,7 +1836,7 @@ void ConfirmEnter(Item &item) WitchRechargeItem(item._iIvalue); break; case TalkID::BoyBuy: - BoyBuyItem(item); + BoyBuyItem(BoyItem, item._iIvalue); break; case TalkID::HealerBuy: HealerBuyItem(item);