summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-01-09 22:15:56 +0100
committerGitHub <noreply@github.com>2018-01-09 22:15:56 +0100
commit302dfea2f096b07c0d6e991402c90817c3b5ed6c (patch)
treef2748a1a212ac6593c5191518c047c51c3745df4
parentc037f6339f1fc9636b4fc9056ae0b2e2b673024d (diff)
parent72d50b41853b767c987379b81dc7e979afd550aa (diff)
Merge pull request #15535 from touilleMan/fix-pluginscript-complete-code
[GDnative] Fix crash in pluginscript complete_code
-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 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;