mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09: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:
commit
7eb44fa47d
5 changed files with 140 additions and 1 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue