- 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

View file

@ -272,13 +272,13 @@ void DPusher::Tick ()
{ {
pushvel = m_PushVec; // full force 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 pushvel.Zero(); // no force
} }
else // wading in water else // wading in water
{ {
pushvel = m_PushVec / 2; // full force pushvel = m_PushVec / 2; // half force
} }
} }
} }