Try to fix invalid string by store a copied of translation

This commit is contained in:
Benau 2018-04-20 14:36:19 +08:00
parent a071e022a5
commit 91e1bd3fd1

View File

@ -548,8 +548,8 @@ void ClientLobby::updatePlayerList(Event* event)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void ClientLobby::becomingServerOwner() void ClientLobby::becomingServerOwner()
{ {
MessageQueue::add(MessageQueue::MT_GENERIC, core::stringw msg = _("You are now the owner of server.");
_("You are now the owner of server.")); MessageQueue::add(MessageQueue::MT_GENERIC, msg);
STKHost::get()->setAuthorisedToControl(true); STKHost::get()->setAuthorisedToControl(true);
if (m_state.load() == CONNECTED && NetworkConfig::get()->isAutoConnect()) if (m_state.load() == CONNECTED && NetworkConfig::get()->isAutoConnect())
{ {