Fix LocalVector crash on insert.

(cherry picked from commit de0765b94a)
This commit is contained in:
Gilles Roudière 2021-08-26 11:54:56 +02:00 committed by Rémi Verschelde
parent 6a7ca43297
commit b0cb253a51
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -169,7 +169,7 @@ public:
push_back(p_val);
} else {
resize(count + 1);
for (U i = count; i > p_pos; i--) {
for (U i = count - 1; i > p_pos; i--) {
data[i] = data[i - 1];
}
data[p_pos] = p_val;