From 4f0d98ec52d7f426106d39ee9bbd15d76c0a92ba Mon Sep 17 00:00:00 2001 From: Eduardo Quezada Date: Fri, 19 Apr 2024 12:05:45 -0400 Subject: [PATCH] Fixed datatypes for Ability inheriting (#4411) --- src/daycare.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/daycare.c b/src/daycare.c index ead6668ec5..537311f99d 100644 --- a/src/daycare.c +++ b/src/daycare.c @@ -713,10 +713,10 @@ static void InheritPokeball(struct Pokemon *egg, struct BoxPokemon *father, stru static void InheritAbility(struct Pokemon *egg, struct BoxPokemon *father, struct BoxPokemon *mother) { - u8 fatherAbility = GetBoxMonData(father, MON_DATA_ABILITY_NUM); - u8 motherAbility = GetBoxMonData(mother, MON_DATA_ABILITY_NUM); - u8 motherSpecies = GetBoxMonData(mother, MON_DATA_SPECIES); - u8 inheritAbility = motherAbility; + u16 fatherAbility = GetBoxMonData(father, MON_DATA_ABILITY_NUM); + u16 motherAbility = GetBoxMonData(mother, MON_DATA_ABILITY_NUM); + u16 motherSpecies = GetBoxMonData(mother, MON_DATA_SPECIES); + u16 inheritAbility = motherAbility; if (motherSpecies == SPECIES_DITTO) {