diff options
author | Eugene Sandulenko | 2016-08-08 20:37:26 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-08 20:37:26 +0200 |
commit | d07460963d091f78c677e31eeaa3760e7a801016 (patch) | |
tree | 4a784063f0cc267b681ce48b8862f8b1cbd1dc48 | |
parent | 9985d076602d46ff3fed1288f65c7d4d4d01e8c3 (diff) | |
download | scummvm-rg350-d07460963d091f78c677e31eeaa3760e7a801016.tar.gz scummvm-rg350-d07460963d091f78c677e31eeaa3760e7a801016.tar.bz2 scummvm-rg350-d07460963d091f78c677e31eeaa3760e7a801016.zip |
DIRECTOR: Lingo: Fix toString() function
-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; |