diff --git a/source/build/src/clip.cpp b/source/build/src/clip.cpp index e07cecaea..d89fa0108 100644 --- a/source/build/src/clip.cpp +++ b/source/build/src/clip.cpp @@ -868,7 +868,7 @@ int pushmove_(vec3_t *const vect, int *const sectnum, if (dir > 0) startwall = sec->wallptr, endwall = startwall + sec->wallnum; else - endwall = sec->wallptr, startwall = endwall + sec->wallnum; + endwall = sec->wallptr - 1, startwall = endwall + sec->wallnum - 1; int i;