From 606d72adf2b94a5ec5563cee01c7b472461b3261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=B6ppe?= Date: Mon, 8 Jan 2018 15:17:58 +0000 Subject: [PATCH] [q3map2] Fix errnoneous plane access if plane was not found --- tools/quake3/q3map2/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/quake3/q3map2/map.c b/tools/quake3/q3map2/map.c index 9b123626..861ca8ef 100644 --- a/tools/quake3/q3map2/map.c +++ b/tools/quake3/q3map2/map.c @@ -1086,7 +1086,7 @@ static void ParseRawBrush( qboolean onlyLights ){ side->planenum = planenum; /* bp: get the texture mapping for this texturedef / plane combination */ - if ( g_bBrushPrimit == BPRIMIT_OLDBRUSHES ) { + if ( g_bBrushPrimit == BPRIMIT_OLDBRUSHES && planenum != -1 ) { QuakeTextureVecs( &mapplanes[ planenum ], shift, rotate, scale, side->vecs ); } }