From f56acf8a801cc8a8551a8df4267d1d7832e6eda3 Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Thu, 15 Sep 2022 21:07:37 +0300 Subject: [PATCH] fix crash on exiting Custom Campaign fix kambala-decapitator/vcmi#46 --- client/lobby/SelectionTab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/lobby/SelectionTab.cpp b/client/lobby/SelectionTab.cpp index e1d6226c3..6f65dc57c 100644 --- a/client/lobby/SelectionTab.cpp +++ b/client/lobby/SelectionTab.cpp @@ -275,7 +275,7 @@ void SelectionTab::clickLeft(tribool down, bool previousState) } #ifdef VCMI_IOS // focus input field if clicked inside it - else if(inputName->active && inputNameRect.isIn(GH.current->button.x, GH.current->button.y)) + else if(inputName && inputName->active && inputNameRect.isIn(GH.current->button.x, GH.current->button.y)) inputName->giveFocus(); #endif }