summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2017-08-26 14:27:10 -0400
committerProjectRevoTPP <projectrevotpp@hotmail.com>2017-08-26 14:27:10 -0400
commit6f360947a67c4fb8c0b32b07dc74bb28ff0f08a0 (patch)
tree94f0e9322172b370900de5ccb623e90b0565dcfe
parenta2087a9caf534be0889cf54a8202f3a88ccc09ea (diff)
correct itemId access
-rw-r--r--src/shop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shop.c b/src/shop.c
index fa9d8c30d..6a88f1394 100644
--- a/src/shop.c
+++ b/src/shop.c
@@ -527,7 +527,7 @@ void sub_80B37EC(void)
void sub_80B37F8(u8 taskId)
{
u16 itemListIndex = gMartInfo.choicesAbove + gMartInfo.cursor;
- u16 itemId = *(gMartInfo.itemList + itemListIndex);
+ u16 itemId = gMartInfo.itemList[itemListIndex];
u32 price = (ItemId_GetPrice(itemId) >> GetPriceReduction(1));
sub_80B7A94(gTasks[taskId].data[1] * price, 6, 6, 11);