From be92257abf21ea5e33f03f709cf1763dc5a59f39 Mon Sep 17 00:00:00 2001 From: Edo Date: Mon, 9 Jan 2023 17:39:35 +0100 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20add=20elusive=20g=20=F0=9F=98=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/component/client_command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/component/client_command.cpp b/src/client/component/client_command.cpp index e777edd3..9456471b 100644 --- a/src/client/component/client_command.cpp +++ b/src/client/component/client_command.cpp @@ -34,7 +34,7 @@ namespace client_command return; } - utils::hook::invoke(0x140295C40, client_num); + utils::hook::invoke(0x140295C40_g, client_num); } } From 907fa4bfa6114b67d7bc77b774895a9bdf5f4492 Mon Sep 17 00:00:00 2001 From: Edo Date: Mon, 9 Jan 2023 17:40:08 +0100 Subject: [PATCH 2/2] fix: add _g here as well --- src/client/component/chat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/component/chat.cpp b/src/client/component/chat.cpp index 52db6f20..b809c406 100644 --- a/src/client/component/chat.cpp +++ b/src/client/component/chat.cpp @@ -40,7 +40,7 @@ namespace chat game::Scr_AddString(game::SCRIPTINSTANCE_SERVER, p.data() + 2); game::Scr_Notify_Canon(ent, game::Scr_CanonHash(params[0]), 1); - utils::hook::invoke(0x140298E70, ent, p.data()); + utils::hook::invoke(0x140298E70_g, ent, p.data()); } }