mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-25 22:05:20 -04:00
parent
ee3fff240a
commit
81b2f88822
@ -211,6 +211,14 @@ void P_LoadSegs (int lump)
|
||||
ldef = &lines[linedef];
|
||||
li->linedef = ldef;
|
||||
side = SHORT(ml->side);
|
||||
|
||||
// Andrey Budko: check for wrong indexes
|
||||
if ((unsigned)ldef->sidenum[side] >= (unsigned)numsides)
|
||||
{
|
||||
I_Error("P_LoadSegs: linedef %d for seg %d references a non-existent sidedef %d",
|
||||
linedef, i, (unsigned)ldef->sidenum[side]);
|
||||
}
|
||||
|
||||
li->sidedef = &sides[ldef->sidenum[side]];
|
||||
li->frontsector = sides[ldef->sidenum[side]].sector;
|
||||
// [FG] recalculate
|
||||
|
Loading…
x
Reference in New Issue
Block a user