Syntax fixes.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-06-20 18:53:10 +02:00
parent 14458ec30c
commit f55ae5a809
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
3 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -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>