[q3map2] Fix errnoneous plane access if plane was not found

This commit is contained in:
Thomas Köppe 2018-01-08 15:17:58 +00:00
parent 94849adc93
commit 606d72adf2

View file

@ -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 );
}
}