Merge pull request #30392 from hbina/redundant_check_pool_vector
Removed a redundant check in PoolVector
This commit is contained in:
commit
74b00d1bea
1 changed files with 1 additions and 3 deletions
|
@ -488,9 +488,7 @@ T PoolVector<T>::get(int p_index) const {
|
|||
template <class T>
|
||||
void PoolVector<T>::set(int p_index, const T &p_val) {
|
||||
|
||||
if (p_index < 0 || p_index >= size()) {
|
||||
ERR_FAIL_COND(p_index < 0 || p_index >= size());
|
||||
}
|
||||
ERR_FAIL_INDEX(p_index, size());
|
||||
|
||||
Write w = write();
|
||||
w[p_index] = p_val;
|
||||
|
|
Loading…
Reference in a new issue