diff options
-rw-r--r-- | scumm/script_v8.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp index d0cd604bab..2fd6a1e31f 100644 --- a/scumm/script_v8.cpp +++ b/scumm/script_v8.cpp @@ -1717,18 +1717,14 @@ void Scumm_v8::o8_getObjectImageHeight() void Scumm_v8::o8_getStringWidth() { - char temp[1024]; int charset = pop(); int len = resStrLen(_scriptPointer); int oldID = _charset->getCurID(); int width; - // Parse the string to get rid of substitution codes - strcpy(temp, (char*)_scriptPointer); - addMessageToStack((byte*)&temp); // Temporary set the specified charset id _charset->setCurID(charset); - width = _charset->getStringWidth(0, (byte*)temp); + width = _charset->getStringWidth(0, _scriptPointer); _charset->setCurID(oldID); push(width); |