You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #68125 from kleonc/range-fix-single-arg-optimized-type-mismatch
[GDScript] Fix type mismatch in optimized single arg `range`
This commit is contained in:
@@ -1382,7 +1382,7 @@ void GDScriptAnalyzer::resolve_for(GDScriptParser::ForNode *p_for) {
|
||||
if (all_is_constant) {
|
||||
switch (args.size()) {
|
||||
case 1:
|
||||
reduced = args[0];
|
||||
reduced = (int32_t)args[0];
|
||||
break;
|
||||
case 2:
|
||||
reduced = Vector2i(args[0], args[1]);
|
||||
|
||||
Reference in New Issue
Block a user