From beaafb3d797b93104581fab1fe710b2bcc4a7975 Mon Sep 17 00:00:00 2001 From: Benau Date: Fri, 6 Apr 2018 14:29:32 +0800 Subject: [PATCH] Fix clang discarding the translated stringw --- src/network/protocols/client_lobby.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/network/protocols/client_lobby.cpp b/src/network/protocols/client_lobby.cpp index 3206f3741..0dc1494fd 100644 --- a/src/network/protocols/client_lobby.cpp +++ b/src/network/protocols/client_lobby.cpp @@ -470,7 +470,8 @@ void ClientLobby::connectionAccepted(Event* event) //race_manager->setMajorMode(game_mode.second); //I18N: In the networking lobby - each_line = _("Game mode: %s", NetworkConfig::get()->getModeName(u_data)); + core::stringw mode_name = NetworkConfig::get()->getModeName(u_data); + each_line = _("Game mode: %s", mode_name); NetworkingLobby::getInstance()->addMoreServerInfo(each_line); uint8_t extra_server_info = data.getUInt8();