From 2255253270a3af2e5b57c8981bdf6eb28cbadb99 Mon Sep 17 00:00:00 2001 From: sami niemi Date: Wed, 29 Dec 2021 22:54:29 +0200 Subject: [PATCH] Fix retarded typo Idk how it took me this long to realize this --- .gitignore | 3 +++ src/Features/EnginePrediction/EnginePrediction.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index fd0deab..75cf6f8 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,6 @@ src/Release/vc142.pdb *.txt *.tlog *.exe +*.db-wal +*.db-shm +*.opendb diff --git a/src/Features/EnginePrediction/EnginePrediction.cpp b/src/Features/EnginePrediction/EnginePrediction.cpp index f12e533..6b5bdf3 100644 --- a/src/Features/EnginePrediction/EnginePrediction.cpp +++ b/src/Features/EnginePrediction/EnginePrediction.cpp @@ -34,7 +34,7 @@ void CFeatures_EnginePrediction::Start(C_BasePlayer* pLocal, CUserCmd* cmd) if (cmd->weaponselect != 0) { - C_BaseCombatWeapon* pWeapon = pLocal->GetActiveWeapon()->As(); + C_BaseCombatWeapon* pWeapon = I::ClientEntityList->GetClientEntity(cmd->weaponselect)->As(); if (pWeapon) pLocal->SelectItem(pWeapon->GetName(), cmd->weaponsubtype);