summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server/sv_world.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/sv_world.c b/src/server/sv_world.c
index a30ea7a2..c10f1e92 100644
--- a/src/server/sv_world.c
+++ b/src/server/sv_world.c
@@ -615,6 +615,9 @@ void SV_Trace( trace_t *results, const vec3_t start, vec3_t mins, vec3_t maxs, c
return; // blocked immediately by the world
}
+ if( passEntityNum < 0 || passEntityNum > ENTITYNUM_NONE )
+ passEntityNum = ENTITYNUM_NONE;
+
clip.contentmask = contentmask;
clip.start = start;
// VectorCopy( clip.trace.endpos, clip.end );