Populate uninitialized PokemonBuilder fields before running several initializion methods.

This commit is contained in:
Deukhoofd 2020-10-31 12:27:13 +01:00
parent 385d70e5ed
commit 813cf65331
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 1 deletions

View File

@ -166,6 +166,7 @@ namespace PkmnLibSharp.Battling
{
random = _defaultRandom;
}
PopulateUninitialized(species, forme!, random);
Item? heldItem = null;
if (HeldItem != null)
@ -199,7 +200,6 @@ namespace PkmnLibSharp.Battling
Gender = species.GetRandomGender(random);
}
PopulateUninitialized(species, forme!, random);
return Finalize(species, forme!, heldItem, moves, nature);
}
}