From b6d2ed268a40d060420e7b8bc84ecd2fdefb99f2 Mon Sep 17 00:00:00 2001 From: def Date: Wed, 24 Apr 2019 18:33:31 +0200 Subject: [PATCH] another one --- src/game/client/prediction/gameworld.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/client/prediction/gameworld.cpp b/src/game/client/prediction/gameworld.cpp index 2de547c2d..950216556 100644 --- a/src/game/client/prediction/gameworld.cpp +++ b/src/game/client/prediction/gameworld.cpp @@ -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;