From f6b8773b4b9d9bba0dfdd4f144e2f18203cddb5a Mon Sep 17 00:00:00 2001 From: Fabian Terhorst Date: Mon, 14 Oct 2024 16:18:50 +0200 Subject: [PATCH] tweak(server): remove small fmt usage --- .../citizen-server-impl/src/state/ServerGameState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/components/citizen-server-impl/src/state/ServerGameState.cpp b/code/components/citizen-server-impl/src/state/ServerGameState.cpp index 38cc268272..65f77febe7 100644 --- a/code/components/citizen-server-impl/src/state/ServerGameState.cpp +++ b/code/components/citizen-server-impl/src/state/ServerGameState.cpp @@ -6754,7 +6754,7 @@ inline auto GetHandler(fx::ServerInstanceBase* instance, const fx::ClientSharedP return [instance, client, ev = std::move(ev)]() { auto evComponent = instance->GetComponent()->GetComponent(); - return evComponent->TriggerEvent2(ev->GetName(), { }, fmt::sprintf("%d", client->GetNetId()), *ev); + return evComponent->TriggerEvent2(ev->GetName(), { }, std::to_string(client->GetNetId()), *ev); }; } @@ -6776,7 +6776,7 @@ inline auto GetHandlerWithEvent(fx::ServerInstanceBase* instance, const fx::Clie return [instance, client, ev = std::move(ev)]() { auto evComponent = instance->GetComponent()->GetComponent(); - return evComponent->TriggerEvent2(ev->GetName(), { }, fmt::sprintf("%d", client->GetNetId()), *ev); + return evComponent->TriggerEvent2(ev->GetName(), { }, std::to_string(client->GetNetId()), *ev); }; }