summaryrefslogtreecommitdiff
path: root/src/berry_pouch.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2019-12-03 13:39:11 -0500
committerGitHub <noreply@github.com>2019-12-03 13:39:11 -0500
commitbc0fe11d163da1131daf63bdeb2abcba788f6036 (patch)
treee0f649059b6b506b957ad378c9c8283b57380430 /src/berry_pouch.c
parent6f127dca8f6f4462d6f50807a8456316340d674f (diff)
parent8d0618778125e8260021652d369584d82a8cdf39 (diff)
Merge pull request #169 from ghoulslash/shop
Shop
Diffstat (limited to 'src/berry_pouch.c')
-rw-r--r--src/berry_pouch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/berry_pouch.c b/src/berry_pouch.c
index bb1b106af..711a17768 100644
--- a/src/berry_pouch.c
+++ b/src/berry_pouch.c
@@ -1384,7 +1384,7 @@ static void Task_SellBerries_PlaySfxAndRemoveBerries(u8 taskId)
PlaySE(SE_SHOP);
RemoveBagItem(gSpecialVar_ItemId, data[8]);
AddMoney(&gSaveBlock1Ptr->money, itemid_get_market_price(gSpecialVar_ItemId) / 2 * data[8]);
- sub_809C09C(gSpecialVar_ItemId, data[8], 2);
+ RecordItemPurchase(gSpecialVar_ItemId, data[8], 2);
DestroyListMenuTask(data[0], &sStaticCnt.listMenuScrollOffset, &sStaticCnt.listMenuSelectedRow);
SortAndCountBerries();
SanitizeListMenuSelectionParams();