Corrected an issue in the extraction where a region could be set to

a split tile type, causing a crash if the node name had to be
discovered by a "hard search".
This commit is contained in:
Tim Edwards 2022-05-04 12:00:09 -04:00
parent 99384a63c7
commit e00633b8a1
2 changed files with 9 additions and 2 deletions

View File

@ -1 +1 @@
8.3.297
8.3.298

View File

@ -3529,7 +3529,14 @@ extSetNodeNum(reg, plane, tile)
if (!SplitSide(tile) && SplitDirection(tile))
type = SplitSide(tile) ? SplitRightType(tile) : SplitLeftType(tile);
else if (reg->lreg_pnum == DBNumPlanes)
type = TiGetTypeExact(tile);
{
/* Accept tile provisionally anyway */
type = SplitSide(tile) ? SplitRightType(tile) : SplitLeftType(tile);
if ((type == TT_SPACE) || !TTMaskHasType(&DBPlaneTypes[plane], type))
type = SplitSide(tile) ? SplitLeftType(tile) : SplitRightType(tile);
if ((type == TT_SPACE) || !TTMaskHasType(&DBPlaneTypes[plane], type))
return;
}
else
return;
}