summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-08-17 19:42:46 +0200
committerGitHub <noreply@github.com>2021-08-17 19:42:46 +0200
commit5c776f21e7cd206c21341f6d861587f67707ff4c (patch)
treec36d1ddef21805e1b3c9f00f3d9674d8e7e0e13d /src/network
parent04e9df47d9d80e4649d4bbacb4db538e1cf7a320 (diff)
downloadopenttd-5c776f21e7cd206c21341f6d861587f67707ff4c.tar.xz
Fix 6acf204d: crash when showing coordinator-error-messages (#9488)
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_coordinator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_coordinator.cpp b/src/network/network_coordinator.cpp
index 006707c68..91ba3ee8b 100644
--- a/src/network/network_coordinator.cpp
+++ b/src/network/network_coordinator.cpp
@@ -135,7 +135,7 @@ bool ClientNetworkCoordinatorSocketHandler::Receive_GC_ERROR(Packet *p)
return false;
case NETWORK_COORDINATOR_ERROR_REGISTRATION_FAILED:
- ShowErrorMessage(STR_NETWORK_ERROR_COORDINATOR_REGISTRATION_FAILED, STR_JUST_RAW_STRING, WL_ERROR);
+ ShowErrorMessage(STR_NETWORK_ERROR_COORDINATOR_REGISTRATION_FAILED, INVALID_STRING_ID, WL_ERROR);
/* To prevent that we constantly try to reconnect, switch to local game. */
_settings_client.network.server_game_type = SERVER_GAME_TYPE_LOCAL;
@@ -159,7 +159,7 @@ bool ClientNetworkCoordinatorSocketHandler::Receive_GC_ERROR(Packet *p)
}
case NETWORK_COORDINATOR_ERROR_REUSE_OF_INVITE_CODE:
- ShowErrorMessage(STR_NETWORK_ERROR_COORDINATOR_REUSE_OF_INVITE_CODE, STR_JUST_RAW_STRING, WL_ERROR);
+ ShowErrorMessage(STR_NETWORK_ERROR_COORDINATOR_REUSE_OF_INVITE_CODE, INVALID_STRING_ID, WL_ERROR);
/* To prevent that we constantly battle for the same invite-code, switch to local game. */
_settings_client.network.server_game_type = SERVER_GAME_TYPE_LOCAL;