From 59d84296bf90ed9fc4f3c55b1850ceb0dffe107c Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 7 Jan 2019 11:14:27 +0200 Subject: [PATCH] - fixed crash on creation of scroll texture Example: Hadephobia MAP19 crashes on loading --- src/p_scroll.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_scroll.cpp b/src/p_scroll.cpp index a9ab8db09..05b40cbec 100644 --- a/src/p_scroll.cpp +++ b/src/p_scroll.cpp @@ -581,7 +581,7 @@ void P_SpawnScrollers(FLevelLocals *Level) case Scroll_Texture_Offsets: // killough 3/2/98: scroll according to sidedef offsets side = Level->lines[i].sidedef[0]; - Create (EScroll::sc_side, -Level->sides[s].GetTextureXOffset(side_t::mid), + Create (EScroll::sc_side, -side->GetTextureXOffset(side_t::mid), side->GetTextureYOffset(side_t::mid), nullptr, nullptr, side, accel, SCROLLTYPE(l->args[0])); break;