crash during using "Esc" button in options screen
This commit is contained in:
titiger
2016-10-17 00:19:41 +02:00
parent c33310d37b
commit 4d99f5900d

View File

@@ -1033,7 +1033,7 @@ bool MenuStateOptions::textInput(std::string text) {
} }
void MenuStateOptions::keyPress(SDL_KeyboardEvent c) { void MenuStateOptions::keyPress(SDL_KeyboardEvent c) {
if (activeInputLabel == NULL) { if (activeInputLabel != NULL) {
keyPressEditLabel(c, &activeInputLabel); keyPressEditLabel(c, &activeInputLabel);
} else { } else {
Config &configKeys = Config::getInstance( Config &configKeys = Config::getInstance(