Permalink
Browse files

Removing litter in room won't crash - shouldn't happen anyway - #1401

  • Loading branch information...
mugmuggy committed Sep 25, 2018
1 parent 90ecd93 commit 2bf420618c84b193842291199f28ed345c5af4d5
Showing with 1 addition and 1 deletion.
  1. +1 −1 CorsixTH/Lua/dialogs/edit_room.lua
@@ -611,7 +611,7 @@ function UIEditRoom:returnToDoorPhase()
break
end
if obj.object_type.id == "litter" then -- Silently remove litter from the world.
obj.remove()
obj:remove()
break
end
local obj_state = obj:getState()

0 comments on commit 2bf4206

Please sign in to comment.