'BHit_f' Cleanup

This commit is contained in:
Kawe Mazidjatari 2022-07-30 00:55:28 +02:00
parent 068e50ea40
commit 85a91d4307

View File

@ -1041,7 +1041,7 @@ void BHit_f(const CCommand& args)
if (bhit_abs_origin->GetBool())
{
int iEnt = atof(args[2]);
if (IClientEntity* pEntity = g_pClientEntityList->GetClientEntity(atof(args[2])))
if (IClientEntity* pEntity = g_pClientEntityList->GetClientEntity(iEnt))
vecAbsEnd = pEntity->GetAbsOrigin();
else
goto VEC_RENDER;