Fix LocalVector crash on insert.

This commit is contained in:
Gilles Roudière 2021-08-26 11:54:56 +02:00
parent 6e87d62873
commit de0765b94a
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,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;