diff --git a/src/p_slopes.c b/src/p_slopes.c
index f480b6e4f9d234e95e451ae5b9a503794c624f03..7c84a2db50913732a54e103caeaa1f97c0c4c77a 100644
--- a/src/p_slopes.c
+++ b/src/p_slopes.c
@@ -251,7 +251,7 @@ void P_SpawnSlope_Line(int linenum)
 	UINT8 flags = 0; // Slope flags
 	if (line->flags & ML_NOSONIC)
 		flags |= SL_NOPHYSICS;
-	if (line->flags & ML_NOTAILS)
+	if (!(line->flags & ML_NOTAILS))
 		flags |= SL_NODYNAMIC;
 	if (line->flags & ML_NOKNUX)
 		flags |= SL_ANCHORVERTEX;