Fix sigsegv when there is no main skybox viewpoint.

This commit is contained in:
Nev3r 2019-06-05 18:45:36 +02:00
parent 1c14062e8b
commit 5284817259
1 changed files with 1 additions and 1 deletions

View File

@ -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.