summaryrefslogtreecommitdiff
path: root/src/apprentice.c
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2018-11-01 21:31:10 +0100
committerDizzyEggg <jajkodizzy@wp.pl>2018-11-01 21:31:10 +0100
commit0bb51037d7d3e257a84b1488016441aafd34b020 (patch)
tree80be30e68eb7b53be9cc85c5e4b55c09140b546d /src/apprentice.c
parent37d742cbd86eab628e0d84d5957a805c407b0948 (diff)
Finish frontier util
Diffstat (limited to 'src/apprentice.c')
-rw-r--r--src/apprentice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apprentice.c b/src/apprentice.c
index b4c1f849e..2feac49a7 100644
--- a/src/apprentice.c
+++ b/src/apprentice.c
@@ -2238,7 +2238,7 @@ static void sub_81A1370(void)
r9 = -1;
for (i = 1; i < 4; i++)
{
- if (ReadUnalignedWord(gSaveBlock2Ptr->apprentices[i].playerId) == ReadUnalignedWord(gSaveBlock2Ptr->playerTrainerId)
+ if (GetTrainerId(gSaveBlock2Ptr->apprentices[i].playerId) == GetTrainerId(gSaveBlock2Ptr->playerTrainerId)
&& gSaveBlock2Ptr->apprentices[i].number < r10)
{
r10 = gSaveBlock2Ptr->apprentices[i].number;