From f55ae5a809d2549c6b427f04ee16eff2b1d01077 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 20 Jun 2020 18:53:10 +0200 Subject: [PATCH] Syntax fixes. --- CInterface/Library/SpeciesVariant.cpp | 2 +- src/Library/CreatureData/CreatureSpecies.cpp | 2 +- src/Library/CreatureData/SpeciesVariant.hpp | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) 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