mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 06:31:13 +00:00
GDScript: Fix parse error in string formatting
This commit is contained in:
parent
91d6fa817e
commit
e8da2a60b3
1 changed files with 1 additions and 1 deletions
|
|
@ -5441,7 +5441,7 @@ GDScriptParser::DataType GDScriptParser::_get_operation_type(const Variant::Oper
|
||||||
if (b_type == Variant::INT || b_type == Variant::REAL) {
|
if (b_type == Variant::INT || b_type == Variant::REAL) {
|
||||||
Variant::evaluate(Variant::OP_ADD, b, 1, b, r_valid);
|
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 (%)
|
a = "%s"; // Work around for formatting operator (%)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue