Skip to content

Commit 0941178

Browse files
StephenCWillsAJenbo
authored andcommitted
Fix value of items bought from Wirt's shop
1 parent 21b12f7 commit 0941178

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/stores.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1708,11 +1708,11 @@ void BoyEnter()
17081708
StartStore(TalkID::Gossip);
17091709
}
17101710

1711-
void BoyBuyItem(Item &item)
1711+
void BoyBuyItem(Item &item, int itemPrice)
17121712
{
1713-
TakePlrsMoney(item._iIvalue);
1713+
TakePlrsMoney(itemPrice);
17141714
StoreAutoPlace(item, true);
1715-
BoyItem.clear();
1715+
item.clear();
17161716
OldActiveStore = TalkID::Boy;
17171717
CalcPlrInv(*MyPlayer, true);
17181718
OldTextLine = 12;
@@ -1836,7 +1836,7 @@ void ConfirmEnter(Item &item)
18361836
WitchRechargeItem(item._iIvalue);
18371837
break;
18381838
case TalkID::BoyBuy:
1839-
BoyBuyItem(item);
1839+
BoyBuyItem(BoyItem, item._iIvalue);
18401840
break;
18411841
case TalkID::HealerBuy:
18421842
HealerBuyItem(item);

0 commit comments

Comments
 (0)