summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2019-03-03 21:39:42 -0300
committerGeorge Marques <george@gmarqu.es>2019-03-03 21:39:42 -0300
commitb24cb92240e047a7976f9eccc1b390ac090692e7 (patch)
tree0579c7fe20b9f21bbfb9f6bd9e3bb2c94861e0ab
parenta1e73dcc944627ab7185aec7cd4141fe4ebb97d7 (diff)
GDScript: Allow `for` iterator to be rededefined
-rw-r--r--modules/gdscript/gdscript_parser.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp
index aff39f0b07..7c4ed84757 100644
--- a/modules/gdscript/gdscript_parser.cpp
+++ b/modules/gdscript/gdscript_parser.cpp
@@ -3057,7 +3057,6 @@ void GDScriptParser::_parse_block(BlockNode *p_block, bool p_static) {
}
DataType iter_type;
- iter_type.is_constant = true;
if (container->type == Node::TYPE_OPERATOR) {