Skip to content
Snippets Groups Projects
Commit 4cd237c4 authored by DarkGod's avatar DarkGod
Browse files

fix

parent e9033558
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -89,7 +89,7 @@ function _M:generateOne()
x = spot.x y = spot.y
if m.unique then -- make room for the boss
local a = self.level.map(x, y, Map.ACTOR)
if not a.unique then a:die() end
if a and not a.unique then a:die() end
end
tries = tries + 1
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment