diff options
author | Max Horn | 2003-07-15 21:30:53 +0000 |
---|---|---|
committer | Max Horn | 2003-07-15 21:30:53 +0000 |
commit | c74e2eb4d713c2d6381ca7a15dc0eeb47cf4c935 (patch) | |
tree | 039f482a913c49b0744052d81816562950a1715d /scumm/dialogs.cpp | |
parent | 83a3afab42c2fe8fa9bf6c0713cd09302060feb2 (diff) | |
download | scummvm-rg350-c74e2eb4d713c2d6381ca7a15dc0eeb47cf4c935.tar.gz scummvm-rg350-c74e2eb4d713c2d6381ca7a15dc0eeb47cf4c935.tar.bz2 scummvm-rg350-c74e2eb4d713c2d6381ca7a15dc0eeb47cf4c935.zip |
factored out some duplicate code into a new method translateTextAndPlaySpeech; removed some completely useless code (why compute 'pointer' when we then throw away the result?)
svn-id: r9045
Diffstat (limited to 'scumm/dialogs.cpp')
-rw-r--r-- | scumm/dialogs.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scumm/dialogs.cpp b/scumm/dialogs.cpp index 08a6babf33..5c4901cd00 100644 --- a/scumm/dialogs.cpp +++ b/scumm/dialogs.cpp @@ -194,6 +194,8 @@ const ScummVM::String ScummDialog::queryResString(int stringno) { if (result && *result == '/') { byte tmp[256]; _scumm->translateText(result, tmp); + + // FIXME: AARGH! We shouldn't just strcpy into the data we got from getStringAddress strcpy((char *)result, (char *)tmp); } |