Skip to content

Commit

Permalink
KYRA: Avoid deleting pointer twice after creating EOB2 party
Browse files Browse the repository at this point in the history
It probably happened in EOB as well, but I only actually observed
it in EOB2.
  • Loading branch information
Torbjörn Andersson committed Dec 26, 2011
1 parent 2cd0b29 commit b3b904d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engines/kyra/chargen.cpp
Expand Up @@ -1318,8 +1318,10 @@ void CharacterGenerator::finish() {
_chargenMagicShapes = 0;
}

for (int i = 0; i < 17; i++)
for (int i = 0; i < 17; i++) {
delete[] _chargenButtonLabels[i];
_chargenButtonLabels[i] = 0;
}
}

const EoBChargenButtonDef CharacterGenerator::_chargenButtonDefs[] = {
Expand Down

0 comments on commit b3b904d

Please sign in to comment.