diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-07-31 14:03:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-31 14:03:59 +0200 |
commit | 4fb0ae3e9f109b282cb927adef74c79025ab9fcd (patch) | |
tree | 8d8fc17103ca431588d64294974ab8c5be9fd246 /core | |
parent | 8b28553de8657edaef147e2ddc738b077f430853 (diff) | |
parent | 9fb587b702b42086c0ab21d27014b1f7b543002a (diff) |
Merge pull request #40913 from godotengine/localv
Fixes issue with LocalVector remove function
Diffstat (limited to 'core')
-rw-r--r-- | core/local_vector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/local_vector.h b/core/local_vector.h index d97f3330dc..b0dbd22b29 100644 --- a/core/local_vector.h +++ b/core/local_vector.h @@ -73,10 +73,10 @@ public: void remove(U p_index) { ERR_FAIL_UNSIGNED_INDEX(p_index, count); + count--; for (U i = p_index; i < count; i++) { data[i] = data[i + 1]; } - count--; if (!__has_trivial_destructor(T) && !force_trivial) { data[count].~T(); } |