mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- Add a couple of assertions.
SVN r1774 (trunk)
This commit is contained in:
parent
7a89872b63
commit
90b4be5d28
1 changed files with 2 additions and 0 deletions
|
@ -183,9 +183,11 @@ void P_Attach3dMidtexLinesToSector(sector_t *sector, int lineid, int tag, bool c
|
||||||
scrollplane.AttachedLines.Push(&lines[i]);
|
scrollplane.AttachedLines.Push(&lines[i]);
|
||||||
|
|
||||||
v = int(lines[i].frontsector - sectors);
|
v = int(lines[i].frontsector - sectors);
|
||||||
|
assert(v < numsectors);
|
||||||
found_sectors[v>>3] |= 1 << (v&7);
|
found_sectors[v>>3] |= 1 << (v&7);
|
||||||
|
|
||||||
v = int(lines[i].backsector - sectors);
|
v = int(lines[i].backsector - sectors);
|
||||||
|
assert(v < numsectors);
|
||||||
found_sectors[v>>3] |= 1 << (v&7);
|
found_sectors[v>>3] |= 1 << (v&7);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue