- Fix crash with wind effect on special water sectors.

This commit is contained in:
drfrag 2021-03-10 12:59:07 +01:00 committed by Christoph Oelckers
parent b7bbfd4efd
commit 12aa7a8ff6
1 changed files with 2 additions and 2 deletions

View File

@ -272,13 +272,13 @@ void DPusher::Tick ()
{
pushvel = m_PushVec; // full force
}
else if (thing->player->viewz < ht) // underwater
else if (thing->player && thing->player->viewz < ht) // underwater
{
pushvel.Zero(); // no force
}
else // wading in water
{
pushvel = m_PushVec / 2; // full force
pushvel = m_PushVec / 2; // half force
}
}
}