diff options
author | Max Horn | 2002-11-06 14:19:50 +0000 |
---|---|---|
committer | Max Horn | 2002-11-06 14:19:50 +0000 |
commit | 39b60537c8119fe0e3b2cbb1599dac7d689256e5 (patch) | |
tree | ca8ca12f48bfe2d13b49b2a5102110d42934d0b4 /scumm/dialogs.cpp | |
parent | 503fd9ca64a40e11524eb519e99c346fd4790f72 (diff) | |
download | scummvm-rg350-39b60537c8119fe0e3b2cbb1599dac7d689256e5.tar.gz scummvm-rg350-39b60537c8119fe0e3b2cbb1599dac7d689256e5.tar.bz2 scummvm-rg350-39b60537c8119fe0e3b2cbb1599dac7d689256e5.zip |
removed more typecasts
svn-id: r5438
Diffstat (limited to 'scumm/dialogs.cpp')
-rw-r--r-- | scumm/dialogs.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scumm/dialogs.cpp b/scumm/dialogs.cpp index 0562f46741..5be51a9e85 100644 --- a/scumm/dialogs.cpp +++ b/scumm/dialogs.cpp @@ -181,8 +181,9 @@ const ScummVM::String ScummDialog::queryResString(int stringno) result = (char *)_scumm->getStringAddress(string); if (result && *result == '/') { - _scumm->translateText((char*)result, (char*)&_scumm->transText); - strcpy((char*)result, (char*)&_scumm->transText); + byte tmp[256]; + _scumm->translateText((byte *)result, tmp); + strcpy(result, (char*)tmp); } if (!result) { // Gracelessly degrade to english :) |