aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/scripting/sidefx/ttytext_node.cpp2
-rw-r--r--engines/zvision/text/text.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/zvision/scripting/sidefx/ttytext_node.cpp b/engines/zvision/scripting/sidefx/ttytext_node.cpp
index 1fb7c10792..9a7fa01649 100644
--- a/engines/zvision/scripting/sidefx/ttytext_node.cpp
+++ b/engines/zvision/scripting/sidefx/ttytext_node.cpp
@@ -96,7 +96,7 @@ bool ttyTextNode::process(uint32 deltaTimeInMillis) {
if (ret & TXT_RET_HASSTBOX) {
Common::String buf;
- buf.format("%d", _style.statebox);
+ buf = Common::String::format("%d", _engine->getScriptManager()->getStateValue(_style.statebox));
for (uint8 j = 0; j < buf.size(); j++)
outchar(buf[j]);
diff --git a/engines/zvision/text/text.cpp b/engines/zvision/text/text.cpp
index 0ccca214d7..406c36e5b0 100644
--- a/engines/zvision/text/text.cpp
+++ b/engines/zvision/text/text.cpp
@@ -396,7 +396,7 @@ void TextRenderer::drawTxtInOneLine(const Common::String &text, Graphics::Surfac
if (ret & TXT_RET_HASSTBOX) {
Common::String buf3;
- buf3.format("%d", _engine->getScriptManager()->getStateValue(style.statebox));
+ buf3 = Common::String::format("%d", _engine->getScriptManager()->getStateValue(style.statebox));
buf += buf3;
textPosition += buf3.size();
}