diff options
author | athrxx | 2019-12-22 22:12:04 +0100 |
---|---|---|
committer | athrxx | 2019-12-22 22:15:42 +0100 |
commit | 3ca1b8aac20e46f59f301c0b778a658c41e6b192 (patch) | |
tree | 6c3d1a6fc14f7ef3111eb4a33cfb4c3de52545ef /engines/kyra | |
parent | e11311e9b63f9ad08adea2e7cde008ad079e0bcc (diff) | |
download | scummvm-rg350-3ca1b8aac20e46f59f301c0b778a658c41e6b192.tar.gz scummvm-rg350-3ca1b8aac20e46f59f301c0b778a658c41e6b192.tar.bz2 scummvm-rg350-3ca1b8aac20e46f59f301c0b778a658c41e6b192.zip |
KYRA: (EOB) - fix possible invalid mem access
(this could happen if you create a new character, then immediately delete it, then return to the main menu via Esc and then load a save file)
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/engine/chargen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/kyra/engine/chargen.cpp b/engines/kyra/engine/chargen.cpp index 58b654a505..13e5cd71b0 100644 --- a/engines/kyra/engine/chargen.cpp +++ b/engines/kyra/engine/chargen.cpp @@ -453,6 +453,7 @@ int CharacterGenerator::viewDeleteCharacter() { if (_characters[_activeBox].name[0]) { processSpecialButton(16); _characters[_activeBox].name[0] = 0; + _characters[_activeBox].faceShape = 0; processNameInput(_activeBox, _vm->guiSettings()->colors.guiColorBlack); processFaceMenuSelection(_activeBox + 50); } |