From 30d179e9a30762f9798c220c3a9626b6bba0aa5b Mon Sep 17 00:00:00 2001 From: Onran <100285264+Onran0@users.noreply.github.com> Date: Thu, 22 Feb 2024 22:32:08 +0900 Subject: [PATCH] Update menu.cpp --- src/frontend/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/menu.cpp b/src/frontend/menu.cpp index 6fc92c09..e3650b99 100644 --- a/src/frontend/menu.cpp +++ b/src/frontend/menu.cpp @@ -194,7 +194,7 @@ void create_world_types_panel(Engine* engine) { std::vector worldTypes = WorldTypes::getWorldTypes(); std::sort(worldTypes.begin(), worldTypes.end()); for (std::string& type : worldTypes) { - std::string& fullName = util::wstr2str_utf8(langs::get(util::str2wstr_utf8(type), L"world.types")); + const std::string& fullName = util::wstr2str_utf8(langs::get(util::str2wstr_utf8(type), L"world.types")); auto button = std::make_shared