This commit is contained in:
lustlion 2022-03-05 06:12:11 +01:00
parent cef2096577
commit 3c4f763ae7

View File

@ -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