mirror of
https://github.com/godotengine/godot.git
synced 2025-10-24 18:33:36 +00:00
Both Array and Dictionary are always in shared mode (removed copy on write).
This commit is contained in:
parent
57166cd292
commit
e6583117df
17 changed files with 50 additions and 93 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue