From 479d62548484044e1d069016b927908cf293188e Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 24 Aug 2019 16:24:23 +0200 Subject: [PATCH] Fix crash when spawning traps --- room.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/room.lua b/room.lua index fa50f68..37b2558 100644 --- a/room.lua +++ b/room.lua @@ -887,8 +887,9 @@ function tsm_pyramids.make_room(pos, stype, room_id, rotations) else column_style = math.random(0,4) end + local layout if room.style == "yrepeat" then - local layout = rotate_layout(room.layout, ROOM_WIDTH, rotations) + layout = rotate_layout(room.layout, ROOM_WIDTH, rotations) for iy=0,4,1 do for ix=0,8,1 do for iz=0,8,1 do