diff options
author | Patric Stout <truebrain@openttd.org> | 2021-08-17 19:42:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-17 19:42:46 +0200 |
commit | 5c776f21e7cd206c21341f6d861587f67707ff4c (patch) | |
tree | c36d1ddef21805e1b3c9f00f3d9674d8e7e0e13d /src/network | |
parent | 04e9df47d9d80e4649d4bbacb4db538e1cf7a320 (diff) | |
download | openttd-5c776f21e7cd206c21341f6d861587f67707ff4c.tar.xz |
Fix 6acf204d: crash when showing coordinator-error-messages (#9488)
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_coordinator.cpp | 4 |
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; |