mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-29 17:39:28 +02:00
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:
+8
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user