diff options
-rw-r--r-- | engines/director/lingo/lingo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index 05478bb453..7076ac2bc3 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -273,10 +273,10 @@ Common::String *Datum::toString() { Common::String *s = new Common::String; switch (type) { case INT: - s->format("%d", u.i); + *s = Common::String::format("%d", u.i); break; case FLOAT: - s->format(g_lingo->_floatPrecisionFormat.c_str(), u.f); + *s = Common::String::format(g_lingo->_floatPrecisionFormat.c_str(), u.f); break; case STRING: delete s; |