Fix niltable error
James Whitehead II [10-22-12 - 05:17]
diff --git a/sources/ArchaeologyDigSites.lua b/sources/ArchaeologyDigSites.lua
index 61a68b1..0261187 100644
--- a/sources/ArchaeologyDigSites.lua
+++ b/sources/ArchaeologyDigSites.lua
@@ -35,8 +35,8 @@ local function UpdateDigSites()
SetMapByID(continent)
end
+ local sites = {}
if continent then
- local sites = {}
for idx = 1, GetNumMapLandmarks() do
local name, desc, textureIdx, px, py = GetMapLandmarkInfo(idx)
local zoneName, mapFile, texPctX, texPctY, texX, texY, scrollX, scrollY = UpdateMapHighlight(px, py)