summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-03-01 09:30:28 +0100
committerGitHub <noreply@github.com>2020-03-01 09:30:28 +0100
commit0e25f54755a5e37fe64e328b7cd3ce4058245f09 (patch)
tree2984121d9332d9e90eb35709b77e66ed5cdf4baf /core
parent323ef1acdb91f94984a1f8e7e13e7c49ea15aa39 (diff)
parent4a8cb4a818deefa26ad38f5afe7c327c1449b1df (diff)
Merge pull request #36404 from rxlecky/fix-variant-conversion
Fix Variant to Vector<Variant> conversion operator
Diffstat (limited to 'core')
-rw-r--r--core/variant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant.cpp b/core/variant.cpp
index 7bdaab8fa8..550974363b 100644
--- a/core/variant.cpp
+++ b/core/variant.cpp
@@ -2490,7 +2490,7 @@ Variant::operator Vector<Variant>() const {
variants.resize(va_size);
Variant *w = variants.ptrw();
for (int i = 0; i < va_size; i++)
- w[i] = variants[i];
+ w[i] = va[i];
return variants;
}