Преглед на файлове

fix crash on exiting Custom Campaign

fix kambala-decapitator/vcmi#46
Andrey Filipenkov преди 3 години
родител
ревизия
f56acf8a80
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      client/lobby/SelectionTab.cpp

+ 1 - 1
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
 	}