diff --git a/lua_scripts/map.lua b/lua_scripts/map.lua index 42906ba..6a48e05 100644 --- a/lua_scripts/map.lua +++ b/lua_scripts/map.lua @@ -52,14 +52,15 @@ local map = { -- end end, -- Map Populate / check if map exists - populate = function(self, map) + populate = function(self, map, game) for h = 1, 10 do for i = 1, 10 do local tile = map:create({ x = h, y = i, occupied_by_type = self:mapCrypt(self.map_tiles[h][i]), - occupied_by_id = "" + occupied_by_id = "", + game_ref = game }) end end