diff --git a/sonic-radiance.love/scenes/overworld/map.lua b/sonic-radiance.love/scenes/overworld/map.lua index c0b0376..2768bfd 100644 --- a/sonic-radiance.love/scenes/overworld/map.lua +++ b/sonic-radiance.love/scenes/overworld/map.lua @@ -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