summaryrefslogtreecommitdiff
path: root/src/pokemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pokemon.c')
-rw-r--r--src/pokemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pokemon.c b/src/pokemon.c
index 0bbb9f81e..01b06a1af 100644
--- a/src/pokemon.c
+++ b/src/pokemon.c
@@ -3675,7 +3675,7 @@ u8 CalculatePlayerPartyCount(void)
{
gPlayerPartyCount = 0;
- while (gPlayerPartyCount < 6
+ while (gPlayerPartyCount < PARTY_SIZE
&& GetMonData(&gPlayerParty[gPlayerPartyCount], MON_DATA_SPECIES, NULL) != SPECIES_NONE)
{
gPlayerPartyCount++;
@@ -3689,7 +3689,7 @@ u8 CalculateEnemyPartyCount(void)
{
gEnemyPartyCount = 0;
- while (gEnemyPartyCount < 6
+ while (gEnemyPartyCount < PARTY_SIZE
&& GetMonData(&gEnemyParty[gEnemyPartyCount], MON_DATA_SPECIES, NULL) != SPECIES_NONE)
{
gEnemyPartyCount++;