diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c
index 4741c6a4697e645671d133f69f0433602fdcaab6..acc4da5fa1dd85648a0927bcc6a7f212c03d487c 100644
--- a/src/hardware/hw_main.c
+++ b/src/hardware/hw_main.c
@@ -2492,7 +2492,7 @@ static void HWR_Subsector(size_t num)
 			
 			if (gl_frontsector->cullheight)
 			{
-				if (HWR_DoCulling(gl_frontsector->cullheight, viewsector->cullheight, gl_viewz, FIXED_TO_FLOAT(bottomCullHeight), FIXED_TO_FLOAT(topCullHeight)))
+				if (HWR_DoCulling(gl_frontsector->cullheight, viewsector->cullheight, gl_viewz, FIXED_TO_FLOAT(*rover->bottomheight), FIXED_TO_FLOAT(*rover->topheight)))
 					continue;
 			}