From 89fdc357df4d7a64f3db6e39f16803d4e39b64fa Mon Sep 17 00:00:00 2001 From: Ludovicus Date: Mon, 18 Mar 2019 17:13:09 -0400 Subject: [PATCH] Assume that the lowest numbered mapId is the primary. Blizzard, yiu drive me crazy. --- TomTom.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/TomTom.lua b/TomTom.lua index f45a14f..e0b14b8 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -1195,7 +1195,12 @@ do local parent = hbd.mapData[mapId].parent local parentName = hbd.mapData[parent].name if parentName then - newEntries[name .. ":" .. parentName] = mapId + -- We rely on the implicit acending order of mapID's so the lowest one wins + if not newEntries[name .. ":" .. parentName] then + newEntries[name .. ":" .. parentName] = mapId + else + newEntries[name .. ":" .. tostring(mapId)] = mapId + end end end end -- 1.7.9.5