From 68b56e0091a2371815737e38cb4d35df436eff2f Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Sat, 30 May 2020 19:47:57 +0200 Subject: [PATCH] Fix textmode compile issues --- src/entityhitboxcache.cpp | 2 +- src/hack.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/entityhitboxcache.cpp b/src/entityhitboxcache.cpp index 3100c5ca..e1dd16fb 100644 --- a/src/entityhitboxcache.cpp +++ b/src/entityhitboxcache.cpp @@ -174,7 +174,7 @@ matrix3x4_t *EntityHitboxCache::GetBones(int numbones) #else // Textmode bots miss/shoot at nothing when the tf2 bonecache is used PROF_SECTION(bone_setup); - bones_setup = RAW_ENT(parent_ref)->SetupBones(bones, numbones, 0x7FF00, bones_setup_time); + bones_setup = RAW_ENT(parent_ref)->SetupBones(bones.data(), numbones, 0x7FF00, bones_setup_time); #endif } } diff --git a/src/hack.cpp b/src/hack.cpp index 34b565a3..614ad7aa 100644 --- a/src/hack.cpp +++ b/src/hack.cpp @@ -17,7 +17,9 @@ #include "hack.hpp" #include "common.hpp" #include "MiscTemporary.hpp" +#if ENABLE_GUI #include "menu/GuiInterface.hpp" +#endif #include #include