You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix dereferencing nullptr in ghost_capture event (#1883)
* init
* checked in playerbyindex already
* do the same for the vip, check each cap exists before turning it off
* fxies to vip and jug nullptr dereference
* we do not have a player_ghost_capture event
if (pNeoPlayer->GetClass() == NEO_CLASS_JUGGERNAUT && pNeoPlayer->IsAlive())
4245
4256
{
4257
+
m_pJuggernautPlayer = nullptr;
4246
4258
pNeoPlayer->SpawnJuggernautPostDeath();
4247
4259
}
4248
4260
4261
+
if (pNeoPlayer->GetClass() == NEO_CLASS_VIP)
4262
+
{ // can't check if m_pVIP is this player, assume only one vip per round. NEO TODO (Adam) Use CHandles or entity indexes for m_pVIP, m_pJuggernautPlayer
0 commit comments