summaryrefslogtreecommitdiff
path: root/modules/gdnative/pluginscript/pluginscript_language.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-06-29 13:45:45 +0200
committerGitHub <noreply@github.com>2019-06-29 13:45:45 +0200
commitae70eca5afbf8a6b1d5c11cec96c5746845391bc (patch)
tree4658eebf9fbfcb8647760805d6ae11d917b190b5 /modules/gdnative/pluginscript/pluginscript_language.cpp
parent1df38f2372ffdcd321ec6e54d7d9af7c9a4a8af3 (diff)
parent42e5d825b4060062931b1203f47f86445cf8f31b (diff)
Merge pull request #30183 from Andrettin/Variant-Pointer-Fixes
Fixed cases of unsupported pointers being used to construct variants
Diffstat (limited to 'modules/gdnative/pluginscript/pluginscript_language.cpp')
-rw-r--r--modules/gdnative/pluginscript/pluginscript_language.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnative/pluginscript/pluginscript_language.cpp b/modules/gdnative/pluginscript/pluginscript_language.cpp
index 7cb47ec623..4bbadc62e7 100644
--- a/modules/gdnative/pluginscript/pluginscript_language.cpp
+++ b/modules/gdnative/pluginscript/pluginscript_language.cpp
@@ -216,7 +216,7 @@ void PluginScriptLanguage::get_public_constants(List<Pair<String, Variant> > *p_
Dictionary constants;
_desc.get_public_constants(_data, (godot_dictionary *)&constants);
for (const Variant *key = constants.next(); key; key = constants.next(key)) {
- Variant value = constants[key];
+ Variant value = constants[*key];
p_constants->push_back(Pair<String, Variant>(*key, value));
}
}