From f1d49f2fd48e754a78fcd5b7044e12fac4b6de35 Mon Sep 17 00:00:00 2001 From: 0TheSpy <5511c282@opayq.com> Date: Wed, 9 Nov 2022 06:37:40 +0300 Subject: [PATCH] Update Menu.hpp --- SpyCustom/Menu.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SpyCustom/Menu.hpp b/SpyCustom/Menu.hpp index 71df582..57b503e 100644 --- a/SpyCustom/Menu.hpp +++ b/SpyCustom/Menu.hpp @@ -1709,8 +1709,10 @@ long __stdcall hkEndScene(IDirect3DDevice9* pDevice) if (ImGui::Button("Apply##name", ImVec2(70, 22))) { ConVar* nameConvar = iff.g_pCVar->FindVar("name"); - *(int*)((DWORD)&nameConvar->m_fnChangeCallbacks + 0xC) = 0; + *(int*)((DWORD)&nameConvar->m_fnChangeCallbacks.m_Size) = 0; + printfdbg("m_fnChangeCallbacks %x\n", (DWORD)&nameConvar->m_fnChangeCallbacks.m_Size); nameConvar->SetValue(MakeControlChars(g_Options.playername.value->mystring)); + SetName(MakeControlChars(g_Options.playername.value->mystring)); } if (ImGui::Button("Apply##clan", ImVec2(70, 22)))