diff --git a/Shop-Items-By-Badge-Count.md b/Shop-Items-By-Badge-Count.md index 7b410be..afa7371 100644 --- a/Shop-Items-By-Badge-Count.md +++ b/Shop-Items-By-Badge-Count.md @@ -196,7 +196,7 @@ static void SetShopItemsForSale(const u16 *items) sMartInfo.itemList = items; sMartInfo.itemCount = 0; - while (gMartInfo.itemList[i]) + while (sMartInfo.itemList[i]) { sMartInfo.itemCount++; i++;