summaryrefslogtreecommitdiff
path: root/src/dungeon_pokemon_attributes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dungeon_pokemon_attributes.c')
-rw-r--r--src/dungeon_pokemon_attributes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dungeon_pokemon_attributes.c b/src/dungeon_pokemon_attributes.c
index 671162d..0550d7d 100644
--- a/src/dungeon_pokemon_attributes.c
+++ b/src/dungeon_pokemon_attributes.c
@@ -110,11 +110,11 @@ bool8 HasType(struct DungeonEntity *pokemon, u8 type)
{
return FALSE;
}
- if (pokemonData->type1 == type)
+ if (pokemonData->types[0] == type)
{
return TRUE;
}
- if (pokemonData->type2 == type)
+ if (pokemonData->types[1] == type)
{
return TRUE;
}