Removed char &operator [] from class String -- it had the potential to wreak havoc when used on shared strings (thanks to tramboi for pointing this out)

svn-id: r31334
This commit is contained in:
Max Horn 2008-03-30 18:37:09 +00:00
parent 351851971b
commit 57ad73faee
4 changed files with 36 additions and 26 deletions

View file

@ -430,7 +430,7 @@ bool AgiEngine::predictiveDialog(void) {
else
repeatcount[x - 1] = (repeatcount[x - 1] + 1) % 3;
if (_currentCode.lastChar() >= '1')
_currentWord[x - 1] = buttons[_currentCode[x - 1] - '1'][3 + repeatcount[x - 1]];
_currentWord.setChar(buttons[_currentCode[x - 1] - '1'][3 + repeatcount[x - 1]], x-1);
}
}
} else if (active == 10) { // add