mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 14:24:33 +01:00
Replace format_string(4) with OpenRCT2::FormatStringLegacy() (#19190)
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
This commit is contained in:
committed by
GitHub
parent
d6f58c2f1f
commit
12874f2af7
@@ -12,6 +12,7 @@
|
||||
# include "NetworkConnection.h"
|
||||
|
||||
# include "../core/String.hpp"
|
||||
# include "../localisation/Formatting.h"
|
||||
# include "../localisation/Localisation.h"
|
||||
# include "../platform/Platform.h"
|
||||
# include "Socket.h"
|
||||
@@ -198,7 +199,7 @@ void NetworkConnection::SetLastDisconnectReason(std::string_view src)
|
||||
void NetworkConnection::SetLastDisconnectReason(const StringId string_id, void* args)
|
||||
{
|
||||
char buffer[NETWORK_DISCONNECT_REASON_BUFFER_SIZE];
|
||||
format_string(buffer, NETWORK_DISCONNECT_REASON_BUFFER_SIZE, string_id, args);
|
||||
OpenRCT2::FormatStringLegacy(buffer, NETWORK_DISCONNECT_REASON_BUFFER_SIZE, string_id, args);
|
||||
SetLastDisconnectReason(buffer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user