From efe0c78584a7ef2122d25375ca1c16ca916e406d Mon Sep 17 00:00:00 2001 From: Ludovicus Date: Mon, 18 Mar 2019 17:17:15 -0400 Subject: [PATCH] Protect against orphan maps, which the latest HBD now discovers. --- TomTom.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TomTom.lua b/TomTom.lua index 38b3e5c..fb8b42a 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -1194,7 +1194,7 @@ do NameToMapId[name] = nil for idx, mapId in pairs(mapID) do local parent = hbd.mapData[mapId].parent - local parentName = hbd.mapData[parent].name + local parentName = (parent and (parent > 0) and hbd.mapData[parent].name) if parentName then -- We rely on the implicit acending order of mapID's so the lowest one wins if not newEntries[name .. ":" .. parentName] then -- 1.7.9.5