Update Menu.hpp

This commit is contained in:
0TheSpy 2022-11-09 06:37:40 +03:00 committed by GitHub
parent 8f08134625
commit f1d49f2fd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)))