aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Patrick Guerrero <kilbith@users.noreply.github.com>2021-02-08 18:56:51 +0100
committerSmallJoker <mk939@ymail.com>2021-02-08 18:56:51 +0100
commit1d64e6537c3fb048e0d0594680d1c727a80c30d8 (patch)
treed62596055bf0225deb3b8cdcf8af71141d1f50de
parent6591597430c8a06c579e2631fcdbb022ae12160d (diff)
downloadminetest-1d64e6537c3fb048e0d0594680d1c727a80c30d8.tar.gz
minetest-1d64e6537c3fb048e0d0594680d1c727a80c30d8.tar.bz2
minetest-1d64e6537c3fb048e0d0594680d1c727a80c30d8.zip
Pause menu: Fix segfault on u/down key input
-rw-r--r--src/client/game.cpp8
1 files changed, 1 insertions, 7 deletions
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") {