Error in the map:hide() routine?

I wonder if there’s an error in the map:hide() routine. When calling this routine after having called the setImage() routine it comes up with the following error message: attempt to index field ‘?’ a nil value.

So, calling the map:hide() routine after the following piece of code, it only hides the map up to the grid position at column = 6, row = 3. The rest of the map is still visible.

local position = { column = 6, row = 3 }  
local currTile = map:getTileAt( position )  
  
if currTile then  
 currTile:setImage(7)  
end  

When calling it before this code it works just fine.

Note: The same happens with the tileLayer:destroy() routine. [import]uid: 129287 topic_id: 23163 reply_id: 323163[/import]

This has been fixed for 3.5, it was issues in the setImage function. [import]uid: 119420 topic_id: 23163 reply_id: 93944[/import]

Awesome! [import]uid: 129287 topic_id: 23163 reply_id: 94159[/import]