Fix retarded typo
Idk how it took me this long to realize this
This commit is contained in:
parent
cb9959c37e
commit
2255253270
3
.gitignore
vendored
3
.gitignore
vendored
@ -10,3 +10,6 @@ src/Release/vc142.pdb
|
|||||||
*.txt
|
*.txt
|
||||||
*.tlog
|
*.tlog
|
||||||
*.exe
|
*.exe
|
||||||
|
*.db-wal
|
||||||
|
*.db-shm
|
||||||
|
*.opendb
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user