diff --git a/src/p_spec.c b/src/p_spec.c
index a1afdd00ddb12c4c4253e4dfe4547a8e3391734d..84a4b09b24b291a82ffcbfff9a5491072fdff591 100644
--- a/src/p_spec.c
+++ b/src/p_spec.c
@@ -4582,6 +4582,9 @@ DoneSection2:
 
 					if (lines[lineindex].flags & ML_NOCLIMB)
 						skipstats = 1;
+
+					if (lines[lineindex].flags & ML_EFFECT1)
+						dontvisit = 1;
 				}
 			}
 			break;