Quantcast

Fix niltable error

James Whitehead II [10-22-12 - 05:17]
Fix niltable error
Filename
sources/ArchaeologyDigSites.lua
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)