From 3ca1b8aac20e46f59f301c0b778a658c41e6b192 Mon Sep 17 00:00:00 2001 From: athrxx Date: Sun, 22 Dec 2019 22:12:04 +0100 Subject: 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) --- engines/kyra/engine/chargen.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/kyra') 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); } -- cgit v1.2.3