fix: fix a crash in TiledMultiMap

This commit is contained in:
Kazhnuz 2021-04-10 11:23:04 +02:00
parent b1eb30ed6c
commit 7b5ec06509

View file

@ -145,6 +145,9 @@ end
function TiledMultiMap:haveUpperLayerAtCoord(x, y)
local wrapper = self:getMapAtPoint(x, y)
if (wrapper == nil) then
return false
end
return wrapper:haveUpperLayerAtCoord(x, y)
end