diff --git a/src/p_polyobj.c b/src/p_polyobj.c
index 997d482821016dafa7539b171bc75d9f4dd9f8e4..fb07b52d0fbc2f77c6da8a30b8b2ee056110907b 100644
--- a/src/p_polyobj.c
+++ b/src/p_polyobj.c
@@ -231,7 +231,7 @@ static void Polyobj_GetInfo(polyobj_t *po, line_t *line)
 	/*if (line->args[3] & TMPF_DONTCLIPPLANES)
 		po->flags &= ~POF_CLIPPLANES;*/
 
-	if (lines[i].flags & TMPF_SPLAT)
+	if (line->args[3] & TMPF_SPLAT)
 		po->flags |= POF_SPLAT;
 
 	if (line->args[3] & TMPF_EXECUTOR) // Has a linedef executor