Made Creature::GetStatusName const.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
parent
ce30077a5d
commit
a361716233
|
@ -186,7 +186,7 @@ namespace CreatureLib::Battling {
|
||||||
|
|
||||||
void SetStatus(const ArbUt::StringView& name);
|
void SetStatus(const ArbUt::StringView& name);
|
||||||
void ClearStatus();
|
void ClearStatus();
|
||||||
const ArbUt::StringView& GetStatusName() noexcept {
|
const ArbUt::StringView& GetStatusName() const noexcept {
|
||||||
if (_status == nullptr)
|
if (_status == nullptr)
|
||||||
return ArbUt::StringView::EmptyString();
|
return ArbUt::StringView::EmptyString();
|
||||||
return _status->GetName();
|
return _status->GetName();
|
||||||
|
|
Loading…
Reference in New Issue