Ensure player mo exists in T-1 hack skybox update

This commit is contained in:
Eidolon 2022-10-29 22:56:47 -05:00
parent ca69b5f2ca
commit fcdb098b9c

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