fix: fix a crash in TiledMultiMap
This commit is contained in:
parent
b1eb30ed6c
commit
7b5ec06509
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue