Remove faulty assert

"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.
This commit is contained in:
grorp 2025-01-01 23:53:24 +01:00
parent 817223f94c
commit 062fffff4b

View File

@ -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 = {}