Prevent Territory with ID 0 being returned

This commit is contained in:
Infi 2023-01-24 00:16:59 +01:00 committed by GitHub
parent 1bd491cb56
commit d7893115d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -304,7 +304,7 @@ public class SeString
foreach (var place in matches)
{
var map = mapSheet.FirstOrDefault(row => row.PlaceName.Row == place.RowId);
if (map != null)
if (map != null && map.TerritoryType.Row != 0)
{
return CreateMapLink(map.TerritoryType.Row, map.RowId, xCoord, yCoord, fudgeFactor);
}