Force newest build to be Conan version.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-02-15 17:35:22 +01:00
parent 2ad6e2a2eb
commit 4ee791c6cb
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ namespace PkmnLib::Library {
}
inline const PokemonSpecies* GetPkmnSpecies(const std::string& name) const {
return reinterpret_cast<const PokemonSpecies*>(CreatureLib::Library::SpeciesLibrary::GetSpecies(name));
return dynamic_cast<const PokemonSpecies*>(CreatureLib::Library::SpeciesLibrary::GetSpecies(name));
}
const PokemonSpecies* operator[](const std::string& name) const { return GetPkmnSpecies(name); }