Skip to content

Commit

Permalink
Fix value of items bought from Wirt's shop
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCWills authored and AJenbo committed Dec 26, 2024
1 parent 21b12f7 commit 0941178
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/stores.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 0941178

Please sign in to comment.