Fixed SDKTools dota build.

This commit is contained in:
Nicholas Hastings 2013-05-14 11:27:06 -04:00
parent a12b83de59
commit 702885ebb2
2 changed files with 14 additions and 2 deletions

View File

@ -138,7 +138,13 @@ size_t TempEntHooks::_FillInPlayers(int *pl_array, IRecipientFilter *pFilter)
for (size_t i=0; i<size; i++)
{
pl_array[i] = pFilter->GetRecipientIndex(i);
int index;
#if SOURCE_ENGINE == SE_DOTA
pFilter->GetRecipientIndex(&index, i);
#else
index = pFilter->GetRecipientIndex(i);
#endif
pl_array[i] = index;
}
return size;

View File

@ -68,7 +68,13 @@ size_t SoundHooks::_FillInPlayers(int *pl_array, IRecipientFilter *pFilter)
for (size_t i=0; i<size; i++)
{
pl_array[i] = pFilter->GetRecipientIndex(i);
int index;
#if SOURCE_ENGINE == SE_DOTA
pFilter->GetRecipientIndex(&index, i);
#else
index = pFilter->GetRecipientIndex(i);
#endif
pl_array[i] = index;
}
return size;