From 72d50b41853b767c987379b81dc7e979afd550aa Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Tue, 9 Jan 2018 21:12:24 +0100 Subject: Fix crash in pluginscript complete_code --- modules/gdnative/pluginscript/pluginscript_language.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdnative/pluginscript/pluginscript_language.cpp b/modules/gdnative/pluginscript/pluginscript_language.cpp index 2405afc677..2751d73ca3 100644 --- a/modules/gdnative/pluginscript/pluginscript_language.cpp +++ b/modules/gdnative/pluginscript/pluginscript_language.cpp @@ -168,7 +168,7 @@ Error PluginScriptLanguage::complete_code(const String &p_code, const String &p_ for (int i = 0; i < options.size(); i++) { r_options->push_back(String(options[i])); } - Error err = *(Error *)tmp; + Error err = *(Error *)&tmp; return err; } return ERR_UNAVAILABLE; -- cgit v1.2.3