about summary refs log tree commit diff
path: root/src/game/server/gameworld.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/server/gameworld.cpp')
-rw-r--r--src/game/server/gameworld.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/server/gameworld.cpp b/src/game/server/gameworld.cpp
index 66da4369..8fffabc8 100644
--- a/src/game/server/gameworld.cpp
+++ b/src/game/server/gameworld.cpp
@@ -48,7 +48,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;