diff --git a/CheatMenu/Animation.cpp b/CheatMenu/Animation.cpp index ad3d472..a41c902 100644 --- a/CheatMenu/Animation.cpp +++ b/CheatMenu/Animation.cpp @@ -56,7 +56,8 @@ void Animation::Draw() if (ImGui::BeginTabBar("Animation", ImGuiTabBarFlags_NoTooltip + ImGuiTabBarFlags_FittingPolicyScroll)) { ImGui::Spacing(); - int hPlayer = CPools::GetPedRef(FindPlayerPed()); + CPlayerPed* pPlayer = FindPlayerPed(); + int hPlayer = CPools::GetPedRef(pPlayer); ImGui::Spacing(); @@ -102,14 +103,12 @@ void Animation::Draw() { if (m_nWalkingStyle == "default") { - patch::Set(0x609A4E, 0x4D48689, false); - patch::Set(0x609A52, 0, false); + patch::Set(0x609A4E, 0x4D48689); + patch::Set(0x609A52, 0); } else { - patch::Set(0x609A4E, -0x6F6F6F70, false); - patch::Nop(0x609A52, 2, false); - + patch::Nop(0x609A4E, 6); Command(m_nWalkingStyle.c_str()); Command(); Command(hPlayer, m_nWalkingStyle.c_str()); diff --git a/CheatMenu/MenuInfo.h b/CheatMenu/MenuInfo.h index 0c941ad..a890d25 100644 --- a/CheatMenu/MenuInfo.h +++ b/CheatMenu/MenuInfo.h @@ -2,5 +2,5 @@ #define MENU_NAME "Cheat Menu" #define MENU_VERSION_NUMBER "2.8" #define MENU_VERSION MENU_VERSION_NUMBER"-beta" -#define BUILD_NUMBER "20210702" +#define BUILD_NUMBER "20210705" #define MENU_TITLE MENU_NAME " v" MENU_VERSION "(" BUILD_NUMBER ")"