aboutsummaryrefslogtreecommitdiff
path: root/src/game/status_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/status_manager.cpp')
-rw-r--r--src/game/status_manager.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/status_manager.cpp b/src/game/status_manager.cpp
index 36add4c..e4838cc 100644
--- a/src/game/status_manager.cpp
+++ b/src/game/status_manager.cpp
@@ -13,23 +13,23 @@ void StatusManager::set_section_title(
const StatusLineSection &section,
const std::string_view &title) noexcept
{
- if (_title_lengths.contains(section))
+ if (_section_title_lengths.contains(section))
{
fmt::print(stderr, "Error: can't set statusbar section title more than once");
return;
}
- _statusline->set_status(section, title);
+ _statusline->set_section_status(section, title);
- _title_lengths[section] = static_cast<int>(title.length());
+ _section_title_lengths[section] = static_cast<int>(title.length());
}
void StatusManager::set_section_body(
const StatusLineSection &section,
const std::string_view &body) noexcept
{
- auto section_title_length = _title_lengths[section];
+ auto section_title_length = _section_title_lengths[section];
- _statusline->set_status(section, body, section_title_length + 1);
+ _statusline->set_section_status(section, body, section_title_length + 1);
}