From 66a43898d41ba912cad008cf9fff5d01411b18d6 Mon Sep 17 00:00:00 2001 From: marxin Date: Mon, 18 Feb 2019 10:26:22 +0100 Subject: [PATCH] Make direct casting among Error and godot_error enums (#23015). --- modules/gdnative/pluginscript/pluginscript_language.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/gdnative/pluginscript/pluginscript_language.cpp b/modules/gdnative/pluginscript/pluginscript_language.cpp index ca1dd66a131..c9d92c09ede 100644 --- a/modules/gdnative/pluginscript/pluginscript_language.cpp +++ b/modules/gdnative/pluginscript/pluginscript_language.cpp @@ -173,8 +173,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; - return err; + return (Error)tmp; } return ERR_UNAVAILABLE; }