From 3f6d6b9320e664ed4b26ceecb152413be6a4f9e9 Mon Sep 17 00:00:00 2001 From: Grinch_ Date: Thu, 16 Sep 2021 19:35:02 +0600 Subject: [PATCH] Fix crash with teleport to coord (vc) --- src/Hook.cpp | 7 ------- src/Teleport.cpp | 2 +- tools/premake5.lua | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/Hook.cpp b/src/Hook.cpp index 4ae26bf..f4e8994 100644 --- a/src/Hook.cpp +++ b/src/Hook.cpp @@ -47,13 +47,6 @@ void Hook::RenderFrame(void* ptr) io.FontDefault = io.Fonts->AddFontFromFileTTF("C:/Windows/Fonts/trebucbd.ttf", fontSize); io.Fonts->Build(); - // add icon font - ImFontConfig config; - config.MergeMode = true; - config.GlyphMinAdvanceX = 13.0f; // icon monospaced - static const ImWchar icon_ranges[] = { ICON_MIN_FA, ICON_MAX_FA, 0 }; - io.Fonts->AddFontFromFileTTF(PLUGIN_PATH((char*)"CheatMenu/icon_font.ttf"), 13.0f, &config, icon_ranges); - if (Globals::renderer == Render_DirectX9) { ImGui_ImplDX9_InvalidateDeviceObjects(); diff --git a/src/Teleport.cpp b/src/Teleport.cpp index 6bfe334..73cab19 100644 --- a/src/Teleport.cpp +++ b/src/Teleport.cpp @@ -219,7 +219,7 @@ void Teleport::Draw() if (ImGui::Button("Teleport to coord", Ui::GetSize(2))) { - CVector pos; + CVector pos{0, 0, 10}; try { diff --git a/tools/premake5.lua b/tools/premake5.lua index 3b38482..38ee450 100644 --- a/tools/premake5.lua +++ b/tools/premake5.lua @@ -28,7 +28,7 @@ workspace "CheatMenu" location "../build" project "Depend" - kind "SharedLib" + kind "StaticLib" targetdir "../build/bin" files {