From d07460963d091f78c677e31eeaa3760e7a801016 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 8 Aug 2016 20:37:26 +0200 Subject: DIRECTOR: Lingo: Fix toString() function --- engines/director/lingo/lingo.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3