mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
re-added return statement
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1356 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -63,7 +63,7 @@ String format_input(const String& format, const ScriptValue& input) {
|
|||||||
// determine type of input
|
// determine type of input
|
||||||
ScriptType type = input.type();
|
ScriptType type = input.type();
|
||||||
if (type == SCRIPT_DATETIME) {
|
if (type == SCRIPT_DATETIME) {
|
||||||
input.toDateTime().Format(format.c_str());
|
return input.toDateTime().Format(format.c_str());
|
||||||
} else {
|
} else {
|
||||||
// determine type expected by format string
|
// determine type expected by format string
|
||||||
String fmt = _("%") + replace_all(format, _("%"), _(""));
|
String fmt = _("%") + replace_all(format, _("%"), _(""));
|
||||||
|
|||||||
Reference in New Issue
Block a user