From 5284817259b82c7d93e230f219e1158492d819a0 Mon Sep 17 00:00:00 2001 From: Nev3r Date: Wed, 5 Jun 2019 18:45:36 +0200 Subject: [PATCH] Fix sigsegv when there is no main skybox viewpoint. --- src/r_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_main.c b/src/r_main.c index 6104b7ca3..b1a14fe0b 100644 --- a/src/r_main.c +++ b/src/r_main.c @@ -1071,7 +1071,7 @@ void R_RenderPlayerView(player_t *player) //profile stuff --------------------------------------------------------- // Add skybox portals caused by sky visplanes. - if (cv_skybox.value) + if (cv_skybox.value && skyboxmo[0]) Portal_AddSkyboxPortals(); // Portal rendering. Hijacks the BSP traversal.