Fix missing [] to undefined replacement in b4503bb61e that was never noticeable because Terrain.place overwrites it on every tile of every map.

Fix wrong variable name in 45bb3d2a43.

This was SVN commit r20335.
This commit is contained in:
elexis
2017-10-23 14:45:26 +00:00
parent 0ddfe51b55
commit 0c9205e5b8
2 changed files with 3 additions and 3 deletions
@@ -290,9 +290,9 @@ function placeTerrain(x, z, terrain)
g_Map.placeTerrain(x, z, createTerrain(terrain));
}
function initTerrain(tileClass)
function initTerrain(terrain)
{
g_Map.initTerrain(createTerrain(tileClass));
g_Map.initTerrain(createTerrain(terrain));
}
function isCircularMap()
@@ -24,7 +24,7 @@ function Map(size, baseHeight)
this.area[i] = new Uint16Array(size);
for (let j = 0; j < size; ++j)
this.terrainObjects[i][j] = [];
this.terrainObjects[i][j] = undefined;
}
// Create 2D array for heightmap