From c9536ff4dc9409eb99c5951c390ca021d55cd820 Mon Sep 17 00:00:00 2001 From: MascaraSnake Date: Sat, 4 Jun 2022 17:46:00 +0200 Subject: [PATCH] Fix copypaste error in P_GetMobjGravity --- src/p_mobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_mobj.c b/src/p_mobj.c index 9017c2f16..36253569b 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -1456,7 +1456,7 @@ fixed_t P_GetMobjGravity(mobj_t *mo) if ((rover->flags & (FF_SWIMMABLE|FF_GOOWATER)) == (FF_SWIMMABLE|FF_GOOWATER)) goopgravity = true; - gravfactor = P_GetSectorGravityFactor(mo->subsector->sector); + gravfactor = P_GetSectorGravityFactor(rover->master->frontsector); if (gravfactor == FRACUNIT) continue;