Make Creature::GetAttacks const
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2022-05-28 11:59:18 +02:00
parent 5c005f31fe
commit 24871b6b65
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ namespace CreatureLib::Battling {
void RemoveVolatileScript(BattleScript* non_null script); void RemoveVolatileScript(BattleScript* non_null script);
bool HasVolatileScript(const ArbUt::BasicStringView& name) const; bool HasVolatileScript(const ArbUt::BasicStringView& name) const;
const ArbUt::OptionalUniquePtrList<LearnedAttack>& GetAttacks() noexcept { return _attacks; } const ArbUt::OptionalUniquePtrList<LearnedAttack>& GetAttacks() const noexcept { return _attacks; }
bool HasAttack(const ArbUt::StringView& name) { bool HasAttack(const ArbUt::StringView& name) {
for (auto& a : _attacks) { for (auto& a : _attacks) {
if (a == nullptr) if (a == nullptr)