summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/network.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index 9b2083efe..c6935638a 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -315,7 +315,7 @@ StringID GetNetworkErrorMsg(NetworkErrorCode err)
if (err >= (ptrdiff_t)lengthof(network_error_strings)) err = NETWORK_ERROR_GENERAL;
- return err;
+ return network_error_strings[err];
}
/* Count the number of active clients connected */