Skip to content

Commit

Permalink
Skip tileset sections with malformed names.
Browse files Browse the repository at this point in the history
  • Loading branch information
Starkku committed Aug 6, 2020
1 parent 088bbe1 commit 344202d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MapTool/MapTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,7 @@ private List<Tileset> ParseTilesetData()
string[] sections = theaterConfigINI.GetSections();
foreach (string section in sections)
{
if (!section.StartsWith("TileSet"))
if (!Regex.IsMatch(section, "^TileSet\\d{4}$"))
continue;

Tileset tileset = new Tileset
Expand Down

0 comments on commit 344202d

Please sign in to comment.