You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
GDScript: Fix wrong argument check for formatting operator
This commit is contained in:
@@ -2883,7 +2883,7 @@ GDScriptParser::DataType GDScriptAnalyzer::get_operation_type(Variant::Operator
|
||||
}
|
||||
|
||||
// Avoid error in formatting operator (%) where it doesn't find a placeholder.
|
||||
if (a_type == Variant::STRING) {
|
||||
if (a_type == Variant::STRING && b_type != Variant::ARRAY) {
|
||||
a = String("%s");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user