mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-24 20:57:18 +01:00
Fix the return type of PoolVector::count().
This commit is contained in:
parent
59933a9e60
commit
e1e51b2881
@ -447,7 +447,7 @@ public:
|
|||||||
bool contains(const T &p_val) const;
|
bool contains(const T &p_val) const;
|
||||||
int find(const T &p_val, int p_from = 0) const;
|
int find(const T &p_val, int p_from = 0) const;
|
||||||
int rfind(const T &p_val, int p_from = -1) 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 has(const T &p_val) const;
|
||||||
|
|
||||||
bool is_locked() const {
|
bool is_locked() const {
|
||||||
@ -568,7 +568,7 @@ int PoolVector<T>::rfind(const T &p_val, int p_from) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
bool PoolVector<T>::count(const T &p_val) const {
|
int PoolVector<T>::count(const T &p_val) const {
|
||||||
const int s = size();
|
const int s = size();
|
||||||
const Read r = read();
|
const Read r = read();
|
||||||
int amount = 0;
|
int amount = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user