From 39bd6543f329b9d6488b7379998eb633dc5722b2 Mon Sep 17 00:00:00 2001 From: TotallyNotElite <1yourexperiment@protonmail.com> Date: Tue, 12 Jun 2018 09:21:43 +0200 Subject: [PATCH] Small fix --- src/hacks/LightESP.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hacks/LightESP.cpp b/src/hacks/LightESP.cpp index 2fc0dbe4..fb1ad6da 100644 --- a/src/hacks/LightESP.cpp +++ b/src/hacks/LightESP.cpp @@ -16,6 +16,9 @@ bool drawEsp[32]; void run() { +#if ENABLE_VISUALS + if (!enable) + return; for (int i = 1; i < g_IEngine->GetMaxClients(); i++) { CachedEntity *pEntity = ENTITY(i); @@ -37,6 +40,7 @@ void run() maxp[i] = pEntity->hitboxes.GetHitbox(0)->max; drawEsp[i] = true; } +#endif } void draw() {