summaryrefslogtreecommitdiff
path: root/src/script_pokemon_util_80C4BF0.c
diff options
context:
space:
mode:
authorcamthesaxman <cameronghall@cox.net>2017-12-22 00:57:31 -0600
committercamthesaxman <cameronghall@cox.net>2017-12-22 00:57:31 -0600
commit2415720ea6760217355f286da83b9955c881bf1b (patch)
tree03486998989b00cfcc83d6504a39987c1d4f044e /src/script_pokemon_util_80C4BF0.c
parent71d3e605290b2069d3571478a3736b04d658decb (diff)
fix 0x2DFC in SaveBlock1
Diffstat (limited to 'src/script_pokemon_util_80C4BF0.c')
-rw-r--r--src/script_pokemon_util_80C4BF0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script_pokemon_util_80C4BF0.c b/src/script_pokemon_util_80C4BF0.c
index dc48adc9b..1128e386d 100644
--- a/src/script_pokemon_util_80C4BF0.c
+++ b/src/script_pokemon_util_80C4BF0.c
@@ -111,7 +111,7 @@ void sub_80C4C78(void)
break;
}
- returnVar = gSaveBlock1.sbStruct.unkSB2.sb1_2EFC_struct2[var].var;
+ returnVar = gSaveBlock1.contestWinners[var].species;
if(returnVar == 0)
gSpecialVar_0x8004 = returnVar;
@@ -144,7 +144,7 @@ u8 sub_80C4D50(void)
int i;
for (i = 0; i < 5; i++)
- if (gSaveBlock1.sbStruct.unkSB2.sb1_2EFC_struct2[i + 8].var)
+ if (gSaveBlock1.contestWinners[i + 8].species != 0)
retVar++;
return retVar;