another one

This commit is contained in:
def 2019-04-24 18:33:31 +02:00
parent 6cf8999a2f
commit b6d2ed268a

View file

@ -66,7 +66,8 @@ int CGameWorld::FindEntities(vec2 Pos, float Radius, CEntity **ppEnts, int Max,
{
if(distance(pEnt->m_Pos, Pos) < Radius+pEnt->m_ProximityRadius)
{
ppEnts[Num] = pEnt;
if(ppEnts)
ppEnts[Num] = pEnt;
Num++;
if(Num == Max)
break;