diff --git a/CInterface/Library/SpeciesVariant.cpp b/CInterface/Library/SpeciesVariant.cpp index 31f0cab..4b20183 100644 --- a/CInterface/Library/SpeciesVariant.cpp +++ b/CInterface/Library/SpeciesVariant.cpp @@ -46,7 +46,7 @@ export uint8_t CreatureLib_SpeciesVariant_GetTalent(SpeciesVariant* p, bool secr Try(out = p->GetTalent(TalentIndex(secret, index)).c_str();) } export const LearnableAttacks* CreatureLib_SpeciesVariant_GetLearnableAttacks(SpeciesVariant* p) { - return p->GetLearnableAttacks().get(); + return p->GetLearnableAttacks().operator->(); } #undef SIMPLE_GET_FUNC diff --git a/src/Library/CreatureData/CreatureSpecies.cpp b/src/Library/CreatureData/CreatureSpecies.cpp index 3ce9012..0ee8e0d 100644 --- a/src/Library/CreatureData/CreatureSpecies.cpp +++ b/src/Library/CreatureData/CreatureSpecies.cpp @@ -27,7 +27,7 @@ void CreatureSpecies::SetVariant(const ArbUt::CaseInsensitiveConstString& name, _variants.GetStdMap().insert({name, std::unique_ptr(variant)}); } -Gender CreatureSpecies::GetRandomGender(ArbUt::Random& rand) const { +Gender CreatureSpecies::GetRandomGender(ArbUt::Random& rand) const noexcept { if (this->_genderRate == -1) { return Gender::Genderless; } diff --git a/src/Library/CreatureData/SpeciesVariant.hpp b/src/Library/CreatureData/SpeciesVariant.hpp index d7fea6d..2bf287c 100644 --- a/src/Library/CreatureData/SpeciesVariant.hpp +++ b/src/Library/CreatureData/SpeciesVariant.hpp @@ -2,6 +2,7 @@ #define CREATURELIB_SPECIESVARIANT_HPP #include +#include #include #include #include