Fixed regression in CellFilter GetRecipientIndex reading oob (bug 5826, r=psychonic).

This commit is contained in:
Kyle Sanderson 2013-08-03 19:20:03 -04:00
parent 1b13f0a2ec
commit aad1b5dc9f
2 changed files with 8 additions and 2 deletions

View File

@ -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);

View File

@ -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);