From f02060f822d27d4f955faf8d1151132a97331f9c Mon Sep 17 00:00:00 2001 From: Player701 <{ID}+{username}@users.noreply.github.com> Date: Mon, 27 Dec 2021 14:27:35 +0300 Subject: [PATCH] - Fixed crash with Scroll_Texture_Offsets with non-zero tag --- src/maploader/specials.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/maploader/specials.cpp b/src/maploader/specials.cpp index b0a076131..64127bbab 100644 --- a/src/maploader/specials.cpp +++ b/src/maploader/specials.cpp @@ -1414,9 +1414,9 @@ void MapLoader::SpawnScrollers() else { auto it = Level->GetLineIdIterator(l->args[1]); - while (int ln = it.Next()) + while ((s = it.Next()) >= 0) { - Level->CreateThinker(EScroll::sc_side, dx, dy, control, nullptr, Level->lines[ln].sidedef[0], accel, SCROLLTYPE(l->args[0])); + Level->CreateThinker(EScroll::sc_side, dx, dy, control, nullptr, Level->lines[s].sidedef[0], accel, SCROLLTYPE(l->args[0])); } } break;