Browse Source

Merge pull request #15535 from touilleMan/fix-pluginscript-complete-code

[GDnative] Fix crash in pluginscript complete_code
Rémi Verschelde 7 years ago
parent
commit
302dfea2f0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/gdnative/pluginscript/pluginscript_language.cpp

+ 1 - 1
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++) {
 		for (int i = 0; i < options.size(); i++) {
 			r_options->push_back(String(options[i]));
 			r_options->push_back(String(options[i]));
 		}
 		}
-		Error err = *(Error *)tmp;
+		Error err = *(Error *)&tmp;
 		return err;
 		return err;
 	}
 	}
 	return ERR_UNAVAILABLE;
 	return ERR_UNAVAILABLE;