Fixed regression in CellFilter GetRecipientIndex reading oob (bug 5826, r=psychonic).
This commit is contained in:
parent
1b13f0a2ec
commit
aad1b5dc9f
@ -94,7 +94,10 @@ inline int CellRecipientFilter::GetRecipientIndex(int slot) const
|
||||
{
|
||||
ret = -1;
|
||||
}
|
||||
ret = static_cast<int>(m_Players[slot]);
|
||||
else
|
||||
{
|
||||
ret = static_cast<int>(m_Players[slot]);
|
||||
}
|
||||
|
||||
#if SOURCE_ENGINE == SE_DOTA
|
||||
return CEntityIndex(ret);
|
||||
|
@ -94,7 +94,10 @@ inline int CellRecipientFilter::GetRecipientIndex(int slot) const
|
||||
{
|
||||
ret = -1;
|
||||
}
|
||||
ret = static_cast<int>(m_Players[slot]);
|
||||
else
|
||||
{
|
||||
ret = static_cast<int>(m_Players[slot]);
|
||||
}
|
||||
|
||||
#if SOURCE_ENGINE == SE_DOTA
|
||||
return CEntityIndex(ret);
|
||||
|
Loading…
Reference in New Issue
Block a user