diff --git a/code/editor.lua b/code/editor.lua index 8b3fa58..af15977 100644 --- a/code/editor.lua +++ b/code/editor.lua @@ -136,7 +136,7 @@ function doEditorEdit() elseif Keybind:CheckPressed(Keybind.generic.lclick) then if editor.room_mode == "delete" then for i, room in ipairs(LoadedObjects.Rooms) do - if room:ContainsPoint(rx, ry) then + if room:containsPoint(rx, ry) then table.remove(LoadedObjects.Rooms, i) end end