summaryrefslogtreecommitdiff
path: root/src/field/lottery_corner.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2017-12-23 13:39:13 -0500
committerPikalaxALT <pikalaxalt@gmail.com>2017-12-23 13:39:13 -0500
commit73c16c109cdb996fa59f5aa63e9f030c21cbe54f (patch)
treeb0b4b7eefc77441d711105cf036b273f22ce2ec2 /src/field/lottery_corner.c
parent56bf99fd9106b3cc8fac45cc051cbeeec40e34aa (diff)
parentaa13f45ebb79aed62171fbfe654d8b542fc9aa6c (diff)
Merge branch 'master' into slot_machine
Diffstat (limited to 'src/field/lottery_corner.c')
-rw-r--r--src/field/lottery_corner.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/field/lottery_corner.c b/src/field/lottery_corner.c
index 2cfdb7f88..83febc56e 100644
--- a/src/field/lottery_corner.c
+++ b/src/field/lottery_corner.c
@@ -7,7 +7,7 @@
#include "string_util.h"
#include "text.h"
-extern u16 gScriptResult;
+extern u16 gSpecialVar_Result;
extern u16 gSpecialVar_0x8004;
extern struct PokemonStorage gPokemonStorage;
extern u16 gSpecialVar_0x8005;
@@ -46,7 +46,7 @@ void SetRandomLotteryNumber(u16 i)
void RetrieveLotteryNumber(void)
{
u16 lottoNumber = GetLotteryNumber();
- gScriptResult = lottoNumber;
+ gSpecialVar_Result = lottoNumber;
}
void PickLotteryCornerTicket(void)
@@ -70,7 +70,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_Result, otId);
if (numMatchingDigits > gSpecialVar_0x8004 && numMatchingDigits > 1)
{
@@ -97,7 +97,7 @@ void PickLotteryCornerTicket(void)
!GetBoxMonData(pkmn, MON_DATA_IS_EGG))
{
u32 otId = GetBoxMonData(pkmn, MON_DATA_OT_ID);
- u8 numMatchingDigits = GetMatchingDigits(gScriptResult, otId);
+ u8 numMatchingDigits = GetMatchingDigits(gSpecialVar_Result, otId);
if (numMatchingDigits > gSpecialVar_0x8004 && numMatchingDigits > 1)
{