Fixed MLPPVector::remove's index parameter's type.

This commit is contained in:
Relintai 2023-12-29 13:32:14 +01:00
parent 701749b2e5
commit 197b59b752
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ void MLPPVector::append_mlpp_vector(const Ref<MLPPVector> &p_other) {
} }
} }
void MLPPVector::remove(real_t p_index) { void MLPPVector::remove(int p_index) {
ERR_FAIL_INDEX(p_index, _size); ERR_FAIL_INDEX(p_index, _size);
--_size; --_size;

View File

@ -49,7 +49,7 @@ public:
void push_back(real_t p_elem); void push_back(real_t p_elem);
void append_mlpp_vector(const Ref<MLPPVector> &p_other); void append_mlpp_vector(const Ref<MLPPVector> &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 // Removes the item copying the last value into the position of the one to
// remove. It's generally faster than `remove`. // remove. It's generally faster than `remove`.