summaryrefslogtreecommitdiff
path: root/src/gui/char_server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/char_server.cpp')
-rw-r--r--src/gui/char_server.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/char_server.cpp b/src/gui/char_server.cpp
index e3835df7..057de3c7 100644
--- a/src/gui/char_server.cpp
+++ b/src/gui/char_server.cpp
@@ -152,12 +152,14 @@ void char_server() {
void server_char_server(int serverIndex) {
int ret;
state = LOGIN;
+ const char *ipstring = iptostring(server_info[serverIndex].address);
// Connect to char server
- ret = open_session(iptostring(server_info[serverIndex].address),
- server_info[serverIndex].port);
+ ret = open_session(ipstring, server_info[serverIndex].port);
if (ret == SOCKET_ERROR) {
- new OkDialog("Error", "Unable to connect to char server");
+ std::string str = std::string("Unable to connect to char server ") +
+ std::string(ipstring);
+ new OkDialog("Error", str);
return;
}