From e8da2a60b3b112919e237c5cbd3e79d76e39cf0b Mon Sep 17 00:00:00 2001 From: George Marques Date: Thu, 26 Jul 2018 10:52:11 -0300 Subject: [PATCH] GDScript: Fix parse error in string formatting --- modules/gdscript/gdscript_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index a0e58e3a37c..852d4652068 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -5441,7 +5441,7 @@ GDScriptParser::DataType GDScriptParser::_get_operation_type(const Variant::Oper if (b_type == Variant::INT || b_type == Variant::REAL) { Variant::evaluate(Variant::OP_ADD, b, 1, b, r_valid); } - if (a_type == Variant::STRING) { + if (a_type == Variant::STRING && b_type != Variant::ARRAY) { a = "%s"; // Work around for formatting operator (%) }