Quantcast

Assume that the lowest numbered mapId is the primary. Blizzard, yiu drive me crazy.

Ludovicus [03-18-19 - 21:13]
Assume that the lowest numbered mapId is the primary.  Blizzard, yiu drive me crazy.
Filename
TomTom.lua
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