aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v8.cpp
diff options
context:
space:
mode:
authorMax Horn2004-04-02 21:56:27 +0000
committerMax Horn2004-04-02 21:56:27 +0000
commit4a4197380404e871f7ea114913504c53da9aab4a (patch)
treea429fc936f2f269e640ade406a7db3d9b1bd2100 /scumm/script_v8.cpp
parent15aa7c3343bf94dc4f1dd0885492802c458c59fc (diff)
downloadscummvm-rg350-4a4197380404e871f7ea114913504c53da9aab4a.tar.gz
scummvm-rg350-4a4197380404e871f7ea114913504c53da9aab4a.tar.bz2
scummvm-rg350-4a4197380404e871f7ea114913504c53da9aab4a.zip
Got rid of _transText
svn-id: r13442
Diffstat (limited to 'scumm/script_v8.cpp')
-rw-r--r--scumm/script_v8.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp
index a8963164b4..92ef66d155 100644
--- a/scumm/script_v8.cpp
+++ b/scumm/script_v8.cpp
@@ -1559,13 +1559,14 @@ void ScummEngine_v8::o8_getStringWidth() {
int oldID = _charset->getCurID();
int width;
const byte *msg = _scriptPointer;
+ byte transBuf[512];
// Skip to the next instruction
_scriptPointer += resStrLen(_scriptPointer) + 1;
if (msg[0] == '/') {
- translateText(msg, _transText);
- msg = _transText;
+ translateText(msg, transBuf);
+ msg = transBuf;
}