summaryrefslogtreecommitdiffstats
path: root/src/core/Array.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/Array.cpp')
-rw-r--r--src/core/Array.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Array.cpp b/src/core/Array.cpp
index 4c80499..bb388c4 100644
--- a/src/core/Array.cpp
+++ b/src/core/Array.cpp
@@ -52,7 +52,7 @@ Array::Array(const PoolColorArray& a)
Variant& Array::operator [](const int idx)
{
- godot_variant *v = godot_array_get(&_godot_array, idx);
+ godot_variant *v = godot_array_operator_index(&_godot_array, idx);
return *(Variant *) v;
}
@@ -60,7 +60,7 @@ Variant Array::operator [](const int idx) const
{
// Yes, I'm casting away the const... you can hate me now.
// since the result is
- godot_variant *v = godot_array_get((godot_array *) &_godot_array, idx);
+ godot_variant *v = godot_array_operator_index((godot_array *) &_godot_array, idx);
return *(Variant *) v;
}