diff --git a/core/containers/pool_vector.h b/core/containers/pool_vector.h index 917ad423f..3f27ea82a 100644 --- a/core/containers/pool_vector.h +++ b/core/containers/pool_vector.h @@ -447,7 +447,7 @@ public: bool contains(const T &p_val) const; int find(const T &p_val, int p_from = 0) const; int rfind(const T &p_val, int p_from = -1) const; - bool count(const T &p_val) const; + int count(const T &p_val) const; bool has(const T &p_val) const; bool is_locked() const { @@ -568,7 +568,7 @@ int PoolVector::rfind(const T &p_val, int p_from) const { } template -bool PoolVector::count(const T &p_val) const { +int PoolVector::count(const T &p_val) const { const int s = size(); const Read r = read(); int amount = 0;