summaryrefslogtreecommitdiffstats
path: root/src/core/PoolArrays.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/PoolArrays.cpp')
-rw-r--r--src/core/PoolArrays.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/PoolArrays.cpp b/src/core/PoolArrays.cpp
index 27c4a58..3e77814 100644
--- a/src/core/PoolArrays.cpp
+++ b/src/core/PoolArrays.cpp
@@ -268,7 +268,7 @@ String PoolStringArray::operator [](const int idx)
{
String s;
godot_string str = godot_pool_string_array_get(&_godot_array, idx);
- godot_string_copy_string((godot_string *) &s, &str);
+ godot_string_new_copy((godot_string *) &s, &str);
godot_string_destroy(&str);
return s;
}