1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-06 17:25:19 +00:00

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

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;