aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorMax Horn2008-03-30 18:37:09 +0000
committerMax Horn2008-03-30 18:37:09 +0000
commit57ad73faeec62f304f257433659ab9b8f559ecb0 (patch)
tree21f682a1920d79d9047ef4e4c8cc6b077d8bd17f /engines/agi
parent351851971bc8d254dddfdfbb1fda3bcffdedcf2c (diff)
downloadscummvm-rg350-57ad73faeec62f304f257433659ab9b8f559ecb0.tar.gz
scummvm-rg350-57ad73faeec62f304f257433659ab9b8f559ecb0.tar.bz2
scummvm-rg350-57ad73faeec62f304f257433659ab9b8f559ecb0.zip
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
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/predictive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/predictive.cpp b/engines/agi/predictive.cpp
index a670146b7e..0eb0b2e032 100644
--- a/engines/agi/predictive.cpp
+++ b/engines/agi/predictive.cpp
@@ -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