diff --git a/SpyCustom/Interfaces.cpp b/SpyCustom/Interfaces.cpp index da20476..f66912a 100644 --- a/SpyCustom/Interfaces.cpp +++ b/SpyCustom/Interfaces.cpp @@ -241,10 +241,11 @@ void NETSetConVar(const char* cvarname, const char* cvarvalue) //__asm pushad char name[1024]; char value[1024]; + ZeroMemory(name, 1024); ZeroMemory(value, 1024); strcpy(name, cvarname); strcpy(value, cvarvalue); - static void* pvSetConVar = (void*)FindPatternV2(XorStr("engine.dll"), XorStr("8D 4C 24 1C E8 ? ? ? ? 56")); + static void* pvSetConVar = (void*)FindPatternV2(("engine.dll"), ("8D 4C 24 1C E8 ? ? ? ? 56")); printfdbg("NETSetConVar %s %s\n", cvarname, value); @@ -279,4 +280,4 @@ void ShowMenu(std::string text) } } - \ No newline at end of file +