File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -774,13 +774,13 @@ static GDNativeTypePtr gdnative_packed_vector3_array_operator_index_const(const
774774static GDNativeVariantPtr gdnative_array_operator_index (GDNativeTypePtr p_self, GDNativeInt p_index) {
775775 Array *self = (Array *)p_self;
776776 ERR_FAIL_INDEX_V (p_index, self->size (), nullptr );
777- return (GDNativeTypePtr )&self[p_index] ;
777+ return (GDNativeVariantPtr )&self-> operator [](p_index) ;
778778}
779779
780780static GDNativeVariantPtr gdnative_array_operator_index_const (const GDNativeTypePtr p_self, GDNativeInt p_index) {
781781 const Array *self = (const Array *)p_self;
782782 ERR_FAIL_INDEX_V (p_index, self->size (), nullptr );
783- return (GDNativeTypePtr )&self[p_index] ;
783+ return (GDNativeVariantPtr )&self-> operator [](p_index) ;
784784}
785785
786786/* OBJECT API */
You can’t perform that action at this time.
0 commit comments