From a3a701d2dd0dccb4d11a6e7f2b0c70d61af3aef5 Mon Sep 17 00:00:00 2001 From: twanvl Date: Thu, 15 Jan 2009 14:47:50 +0000 Subject: [PATCH] re-added return statement git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1356 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/script/functions/basic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/functions/basic.cpp b/src/script/functions/basic.cpp index 32273a7f..958401b8 100644 --- a/src/script/functions/basic.cpp +++ b/src/script/functions/basic.cpp @@ -63,7 +63,7 @@ String format_input(const String& format, const ScriptValue& input) { // determine type of input ScriptType type = input.type(); if (type == SCRIPT_DATETIME) { - input.toDateTime().Format(format.c_str()); + return input.toDateTime().Format(format.c_str()); } else { // determine type expected by format string String fmt = _("%") + replace_all(format, _("%"), _(""));