-
Автор темы
- #1
Hello Does anyone know why Govnohook's IsDead check crashing.
Code is as follows.
Even tried like this.
Thanks In advance :)
Code is as follows.
Код:
bool C_BasePlayer :: IsDead ()
{
if (this == nullptr || * (void **) this == nullptr)
return true;
return (m_lifeState ());
}
Код:
bool C_BasePlayer :: IsDead ()
{
if (! this)
return false;
if (m_iTeamNum ()! = 2 && m_iTeamNum ()! = 3)
return false;
if (m_lifeState ()! = LIFE_DEAD)
return false;
return true;
}