Fix LocalVector crash on insert.
(cherry picked from commit de0765b94a
)
This commit is contained in:
parent
6a7ca43297
commit
b0cb253a51
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue