summaryrefslogtreecommitdiff
path: root/src/qcommon
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcommon')
-rw-r--r--src/qcommon/cm_test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qcommon/cm_test.c b/src/qcommon/cm_test.c
index 420a91f2..21963aa3 100644
--- a/src/qcommon/cm_test.c
+++ b/src/qcommon/cm_test.c
@@ -246,6 +246,9 @@ int CM_PointContents( const vec3_t p, clipHandle_t model ) {
leaf = &cm.leafs[leafnum];
}
+ if(leaf->area == -1)
+ return CONTENTS_SOLID;
+
contents = 0;
for (k=0 ; k<leaf->numLeafBrushes ; k++) {
brushnum = cm.leafbrushes[leaf->firstLeafBrush+k];