mirror of https://github.com/ZDoom/gzdoom.git
- Fixed crash with Scroll_Texture_Offsets with non-zero tag
This commit is contained in:
parent
2945e10a0e
commit
f02060f822
|
@ -1414,9 +1414,9 @@ void MapLoader::SpawnScrollers()
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
auto it = Level->GetLineIdIterator(l->args[1]);
|
auto it = Level->GetLineIdIterator(l->args[1]);
|
||||||
while (int ln = it.Next())
|
while ((s = it.Next()) >= 0)
|
||||||
{
|
{
|
||||||
Level->CreateThinker<DScroller>(EScroll::sc_side, dx, dy, control, nullptr, Level->lines[ln].sidedef[0], accel, SCROLLTYPE(l->args[0]));
|
Level->CreateThinker<DScroller>(EScroll::sc_side, dx, dy, control, nullptr, Level->lines[s].sidedef[0], accel, SCROLLTYPE(l->args[0]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue