diff --git a/mlpp/lin_alg/mlpp_vector.cpp b/mlpp/lin_alg/mlpp_vector.cpp index 1625967..5026c8c 100644 --- a/mlpp/lin_alg/mlpp_vector.cpp +++ b/mlpp/lin_alg/mlpp_vector.cpp @@ -59,7 +59,7 @@ void MLPPVector::append_mlpp_vector(const Ref &p_other) { } } -void MLPPVector::remove(real_t p_index) { +void MLPPVector::remove(int p_index) { ERR_FAIL_INDEX(p_index, _size); --_size; diff --git a/mlpp/lin_alg/mlpp_vector.h b/mlpp/lin_alg/mlpp_vector.h index 9bf1be2..3452b01 100644 --- a/mlpp/lin_alg/mlpp_vector.h +++ b/mlpp/lin_alg/mlpp_vector.h @@ -49,7 +49,7 @@ public: void push_back(real_t p_elem); void append_mlpp_vector(const Ref &p_other); - void remove(real_t p_index); + void remove(int p_index); // Removes the item copying the last value into the position of the one to // remove. It's generally faster than `remove`.