diff options
-rw-r--r-- | engines/sword1/control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp index eb61ffe4b3..575ff2f0bc 100644 --- a/engines/sword1/control.cpp +++ b/engines/sword1/control.cpp @@ -697,7 +697,7 @@ void Control::handleSaveKey(Common::KeyState kbd) { uint8 len = _saveNames[_selectedSavegame].size(); if ((kbd.keycode == Common::KEYCODE_BACKSPACE) && len) // backspace _saveNames[_selectedSavegame].deleteLastChar(); - else if (keyAccepted(kbd.ascii) && (len < 31)) { + else if (kbd.ascii && keyAccepted(kbd.ascii) && (len < 31)) { _saveNames[_selectedSavegame].insertChar(kbd.ascii, len); } showSavegameNames(); |