mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
another one
This commit is contained in:
parent
6cf8999a2f
commit
b6d2ed268a
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue