mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Fixed a bunch of linker errors preventing optimized compile on Linux.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1352 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
|
||||
ScriptType type = input.type();
|
||||
if (type == SCRIPT_DATETIME) {
|
||||
return static_cast<wxDateTime>(input).Format(format.c_str());
|
||||
input.toDateTime().Format(format.c_str());
|
||||
} else {
|
||||
// determine type expected by format string
|
||||
String fmt = _("%") + replace_all(format, _("%"), _(""));
|
||||
|
||||
Reference in New Issue
Block a user