Skip to content

Commit 18a1273

Browse files
G-MorisG-Moris
authored andcommitted
Update 2
1 parent 4ac91fb commit 18a1273

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Client/core/CConnectManager.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ bool CConnectManager::Connect(const char* szHost, unsigned short usPort, const c
150150
OpenServerFirewall(m_Address, CServerBrowser::GetSingletonPtr()->FindServerHttpPort(m_strHost, m_usPort), true);
151151

152152
// Display the status box
153-
std::string formatConnecting;
153+
std::string message;
154154
if (m_bReconnect)
155-
formatConnecting = mtasa::format(_("Reconnecting to {}:{} ..."), m_strHost, m_usPort);
155+
message = mtasa::format(_("Reconnecting to {}:{} ..."), m_strHost, m_usPort);
156156
else
157-
formatConnecting = mtasa::format(_("Connecting to {}:{} ..."), m_strHost, m_usPort);
157+
message = mtasa::format(_("Connecting to {}:{} ..."), m_strHost, m_usPort);
158158

159-
CCore::GetSingleton().ShowMessageBox(_("CONNECTING"), formatConnecting.c_str(), MB_BUTTON_CANCEL | MB_ICON_INFO, m_pOnCancelClick);
159+
CCore::GetSingleton().ShowMessageBox(_("CONNECTING"), message.c_str(), MB_BUTTON_CANCEL | MB_ICON_INFO, m_pOnCancelClick);
160160
WriteDebugEvent(std::format("Connecting to {}:{} ...", m_strHost, m_usPort));
161161

162162
return true;

0 commit comments

Comments
 (0)