From a3617162336f2aedbdd556600443c0327c2c4839 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Tue, 21 Sep 2021 22:19:26 +0200 Subject: [PATCH] Made Creature::GetStatusName const. Signed-off-by: Deukhoofd --- src/Battling/Models/Creature.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Battling/Models/Creature.hpp b/src/Battling/Models/Creature.hpp index 9bf5d6f..9d0cee0 100644 --- a/src/Battling/Models/Creature.hpp +++ b/src/Battling/Models/Creature.hpp @@ -186,7 +186,7 @@ namespace CreatureLib::Battling { void SetStatus(const ArbUt::StringView& name); void ClearStatus(); - const ArbUt::StringView& GetStatusName() noexcept { + const ArbUt::StringView& GetStatusName() const noexcept { if (_status == nullptr) return ArbUt::StringView::EmptyString(); return _status->GetName();