summaryrefslogtreecommitdiff
path: root/src/lottery_corner.c
diff options
context:
space:
mode:
authorDiegoisawesome <diego@domoreaweso.me>2017-11-08 15:20:10 -0600
committerDiegoisawesome <diego@domoreaweso.me>2017-11-08 15:20:10 -0600
commite6ef86e4b0a66440c3339c8d63c13dcd11521984 (patch)
treedcb079ef60b814dc7df699ae4054f717a5a9a088 /src/lottery_corner.c
parent60bb83144b9d69dbb884874d87bd832aebc8e992 (diff)
Update variable and flag names
Diffstat (limited to 'src/lottery_corner.c')
-rw-r--r--src/lottery_corner.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lottery_corner.c b/src/lottery_corner.c
index 3939f7d7f..7c8c32189 100644
--- a/src/lottery_corner.c
+++ b/src/lottery_corner.c
@@ -42,7 +42,7 @@ void SetRandomLotteryNumber(u16 i)
void RetrieveLotteryNumber(void)
{
u16 lottoNumber = GetLotteryNumber();
- gScriptResult = lottoNumber;
+ gSpecialVar_ScriptResult = lottoNumber;
}
void PickLotteryCornerTicket(void)
@@ -66,7 +66,7 @@ void PickLotteryCornerTicket(void)
if (!GetMonData(pkmn, MON_DATA_IS_EGG))
{
u32 otId = GetMonData(pkmn, MON_DATA_OT_ID);
- u8 numMatchingDigits = GetMatchingDigits(gScriptResult, otId);
+ u8 numMatchingDigits = GetMatchingDigits(gSpecialVar_ScriptResult, otId);
if (numMatchingDigits > gSpecialVar_0x8004 && numMatchingDigits > 1)
{
@@ -90,7 +90,7 @@ void PickLotteryCornerTicket(void)
!GetBoxMonData(&gPokemonStoragePtr->boxes[i][j], MON_DATA_IS_EGG))
{
u32 otId = GetBoxMonData(&gPokemonStoragePtr->boxes[i][j], MON_DATA_OT_ID);
- u8 numMatchingDigits = GetMatchingDigits(gScriptResult, otId);
+ u8 numMatchingDigits = GetMatchingDigits(gSpecialVar_ScriptResult, otId);
if (numMatchingDigits > gSpecialVar_0x8004 && numMatchingDigits > 1)
{