You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Both Array and Dictionary are always in shared mode (removed copy on write).
This commit is contained in:
@@ -617,7 +617,7 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a
|
||||
|
||||
CHECK_SPACE(1);
|
||||
int argc=_code_ptr[ip+1];
|
||||
Array array(true); //arrays are always shared
|
||||
Array array; //arrays are always shared
|
||||
array.resize(argc);
|
||||
CHECK_SPACE(argc+2);
|
||||
|
||||
@@ -638,7 +638,7 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a
|
||||
|
||||
CHECK_SPACE(1);
|
||||
int argc=_code_ptr[ip+1];
|
||||
Dictionary dict(true); //arrays are always shared
|
||||
Dictionary dict; //arrays are always shared
|
||||
|
||||
CHECK_SPACE(argc*2+2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user