Fix CanHeal() for already healing targets

This commit is contained in:
acidtripparty 2021-06-09 11:29:36 -07:00 committed by GitHub
parent b945425f1a
commit b6bb8b2506
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -472,6 +472,10 @@ void UpdateData()
bool CanHeal(int idx)
{
// Already healing, no need to check
if (idx == HandleToIDX(CE_INT(LOCAL_W, netvar.m_hHealingTarget)))
return true;
CachedEntity *ent = ENTITY(idx);
if (!ent)
return false;