Fix retarded typo

Idk how it took me this long to realize this
This commit is contained in:
sami niemi 2021-12-29 22:54:29 +02:00
parent cb9959c37e
commit 2255253270
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@ -10,3 +10,6 @@ src/Release/vc142.pdb
*.txt *.txt
*.tlog *.tlog
*.exe *.exe
*.db-wal
*.db-shm
*.opendb

View File

@ -34,7 +34,7 @@ void CFeatures_EnginePrediction::Start(C_BasePlayer* pLocal, CUserCmd* cmd)
if (cmd->weaponselect != 0) if (cmd->weaponselect != 0)
{ {
C_BaseCombatWeapon* pWeapon = pLocal->GetActiveWeapon()->As<C_TerrorWeapon*>(); C_BaseCombatWeapon* pWeapon = I::ClientEntityList->GetClientEntity(cmd->weaponselect)->As<C_BaseCombatWeapon*>();
if (pWeapon) if (pWeapon)
pLocal->SelectItem(pWeapon->GetName(), cmd->weaponsubtype); pLocal->SelectItem(pWeapon->GetName(), cmd->weaponsubtype);