From 1d64e6537c3fb048e0d0594680d1c727a80c30d8 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Mon, 8 Feb 2021 18:56:51 +0100 Subject: Pause menu: Fix segfault on u/down key input --- src/client/game.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/client/game.cpp') diff --git a/src/client/game.cpp b/src/client/game.cpp index 9e942f47a..3c58fb46f 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -171,13 +171,7 @@ struct LocalFormspecHandler : public TextDest return; } - if (fields.find("quit") != fields.end()) { - return; - } - - if (fields.find("btn_continue") != fields.end()) { - return; - } + return; } if (m_formname == "MT_DEATH_SCREEN") { -- cgit v1.2.3