diff --git a/src/p_mobj.c b/src/p_mobj.c
index 421ec400a409bfc71d66267534fd2c0b1af383ae..013f523c693d8b98c715258dd24d67c21237f0a1 100644
--- a/src/p_mobj.c
+++ b/src/p_mobj.c
@@ -1107,9 +1107,9 @@ fixed_t P_GetFOFBottomZ(mobj_t *mobj, sector_t *sector, ffloor_t *fof, fixed_t x
 	I_Assert(sector != NULL);
 	I_Assert(fof != NULL);
 #ifdef ESLOPE
-	if (*fof->t_slope) {
+	if (*fof->b_slope) {
 		fixed_t testx, testy;
-		pslope_t *slope = *fof->t_slope;
+		pslope_t *slope = *fof->b_slope;
 
 		// Get the corner of the object that should be the lowest on the slope
 		if (slope->d.x < 0)