Syntax fixes.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
14458ec30c
commit
f55ae5a809
|
@ -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
|
||||
|
|
|
@ -27,7 +27,7 @@ void CreatureSpecies::SetVariant(const ArbUt::CaseInsensitiveConstString& name,
|
|||
_variants.GetStdMap().insert({name, std::unique_ptr<const SpeciesVariant>(variant)});
|
||||
}
|
||||
|
||||
Gender CreatureSpecies::GetRandomGender(ArbUt::Random& rand) const {
|
||||
Gender CreatureSpecies::GetRandomGender(ArbUt::Random& rand) const noexcept {
|
||||
if (this->_genderRate == -1) {
|
||||
return Gender::Genderless;
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#define CREATURELIB_SPECIESVARIANT_HPP
|
||||
|
||||
#include <Arbutils/Collections/List.hpp>
|
||||
#include <Arbutils/Memory/BorrowedPtr.hpp>
|
||||
#include <Arbutils/Random.hpp>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
|
Loading…
Reference in New Issue