Skip to content

Commit

Permalink
Remove faulty assert
Browse files Browse the repository at this point in the history
"fields.quit" isn't actually guaranteed to fire in all cases, e.g. it doesn't when the formspec is replaced by the death screen.
  • Loading branch information
grorp committed Jan 1, 2025
1 parent 8352a52 commit 6f1ebf8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions builtin/common/settings/dlg_settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -794,11 +794,6 @@ else
end)

core.open_settings = function()
-- this assert is here to make sure we catch all cases of closing the dialog.
-- this is also a little additional protection against processing input
-- we shouldn't process (e.g. coming from server-sent formspecs).
assert(not dialog)

load()
dialog = {}
dialog.data = {}
Expand Down

0 comments on commit 6f1ebf8

Please sign in to comment.