From bb752fc4f4a183177fe8ac6ea3e5bf6e061a9bb4 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Sat, 26 Apr 2014 15:29:59 +0200 Subject: [PATCH] fix a warning about an uninitialized var and let it not look like an argument --- js/map.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/map.js b/js/map.js index b734113..9261776 100644 --- a/js/map.js +++ b/js/map.js @@ -478,8 +478,8 @@ var gMap = { y: Math.ceil((gMap.pos.y + gMap.baseDim.ht / 2) / gMap.baseDim.tsize) + 1, z: gMap.pos.z}); console.log("In range: " + tMin.x + "," + tMin.y + "," + tMin.z + " - " + tMax.x + "," + tMax.y + "," + tMax.z); - for (aTileKey in gMap.glTextures) { - var keyMatches = aTileKey.match(/([^:]+)::(\d+),(\d+),(\d+)/); + for (var tileKey in gMap.glTextures) { + var keyMatches = tileKey.match(/([^:]+)::(\d+),(\d+),(\d+)/); if (keyMatches && keyMatches[1] != "loading") { var txData = { style: keyMatches[1], @@ -506,8 +506,8 @@ var gMap = { } if (delTx) { // Delete texture from GL and from the array we are holding. - gMap.gl.deleteTexture(gMap.glTextures[aTileKey]); - delete gMap.glTextures[aTileKey]; + gMap.gl.deleteTexture(gMap.glTextures[tileKey]); + delete gMap.glTextures[tileKey]; } } } -- 2.35.3