summaryrefslogtreecommitdiff
path: root/modules/gdscript
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-04-07 21:18:46 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-04-07 21:18:46 -0300
commit22997294fa87a1346ef4617b887953a356943354 (patch)
treeb6fc6dbd3357613372b24e1b07f37e87aee83bbc /modules/gdscript
parentb36e41cb7117757011e6f1ccc476ccc806219a58 (diff)
-Concatenating arrays keeps the shared property if any of the arrays is shared. Fixes #1646
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/gd_parser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gd_parser.cpp b/modules/gdscript/gd_parser.cpp
index aa2878f9e1..eae754cbac 100644
--- a/modules/gdscript/gd_parser.cpp
+++ b/modules/gdscript/gd_parser.cpp
@@ -1075,6 +1075,7 @@ GDParser::Node* GDParser::_reduce_expression(Node *p_node,bool p_to_const) {
ConstantNode *cn = alloc_node<ConstantNode>();
Array arr(!p_to_const);
+ //print_line("mk array "+itos(!p_to_const));
arr.resize(an->elements.size());
for(int i=0;i<an->elements.size();i++) {
ConstantNode *acn = static_cast<ConstantNode*>(an->elements[i]);