Fixed crash in line portal setup

https://mantis.zdoom.org/view.php?id=488
This commit is contained in:
alexey.lysiuk 2017-03-27 10:55:51 +03:00
parent bc95e5180d
commit 5f44bc4d5f

View file

@ -167,7 +167,7 @@ static void BuildBlockmap()
void FLinePortalTraverse::AddLineIntercepts(int bx, int by) void FLinePortalTraverse::AddLineIntercepts(int bx, int by)
{ {
if (by < 0 || by >= PortalBlockmap.dx || bx < 0 || bx >= PortalBlockmap.dy) return; if (by < 0 || by >= PortalBlockmap.dy || bx < 0 || bx >= PortalBlockmap.dx) return;
FPortalBlock &block = PortalBlockmap(bx, by); FPortalBlock &block = PortalBlockmap(bx, by);