about summary refs log tree commit diff stats
path: root/gba/source/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'gba/source/main.c')
-rw-r--r--gba/source/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gba/source/main.c b/gba/source/main.c index e5521b2..4bb120f 100644 --- a/gba/source/main.c +++ b/gba/source/main.c
@@ -179,21 +179,23 @@ int main(void)
179 179
180 // Start sending over party pokémon. 180 // Start sending over party pokémon.
181 struct Pokemon* playerParty = 0; 181 struct Pokemon* playerParty = 0;
182 u32 partyCount = 1;
182 if (GAME_RS) 183 if (GAME_RS)
183 { 184 {
184 playerParty = gameData.SaveBlock1->rs.playerParty; 185 playerParty = gameData.SaveBlock1->rs.playerParty;
186 partyCount = gameData.SaveBlock1->rs.playerPartyCount;
185 } else if (GAME_FRLG) 187 } else if (GAME_FRLG)
186 { 188 {
187 playerParty = gameData.SaveBlock1->frlg.playerParty; 189 playerParty = gameData.SaveBlock1->frlg.playerParty;
190 partyCount = gameData.SaveBlock1->frlg.playerPartyCount;
188 } else if (GAME_EM) 191 } else if (GAME_EM)
189 { 192 {
190 playerParty = gameData.SaveBlock1->e.playerParty; 193 playerParty = gameData.SaveBlock1->e.playerParty;
194 partyCount = gameData.SaveBlock1->e.playerPartyCount;
191 } 195 }
192 196
193 waitForResponse(); 197 waitForResponse();
194 198
195 u32 partyCount = 1;
196
197 sendU32(partyCount); 199 sendU32(partyCount);
198 waitForAck(); 200 waitForAck();
199 201