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
1 changed files with 1 additions and 1 deletions

View File

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