Ensure player mo exists in T-1 hack skybox update

This commit is contained in:
Eidolon committed 2022-10-29 22:56:47 -05:00
1 parent ca69b5f2ca
commit fcdb098b9c
1 file changed
+1 -1
+1 -1
View File
@@ -820,7 +820,7 @@ void P_Ticker(boolean run)
{
player_t *player = &players[displayplayers[i]];
boolean isSkyVisibleForPlayer = skyVisiblePerPlayer[i];
if (isSkyVisibleForPlayer && skyboxmo[0] && cv_skybox.value)
if (isSkyVisibleForPlayer && player->mo && skyboxmo[0] && cv_skybox.value)
{
R_SkyboxFrame(player);
}