summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormarxin <mliska@suse.cz>2019-02-18 10:26:22 +0100
committermarxin <mliska@suse.cz>2019-02-18 10:26:22 +0100
commit66a43898d41ba912cad008cf9fff5d01411b18d6 (patch)
tree19a60fe0f72a61177086531473843c6b1d5bc8f4 /modules
parentf5f2b5d4af47b51cd1ff887ea2fbd1c3f8aa1eed (diff)
Make direct casting among Error and godot_error enums (#23015).
Diffstat (limited to 'modules')
-rw-r--r--modules/gdnative/pluginscript/pluginscript_language.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/gdnative/pluginscript/pluginscript_language.cpp b/modules/gdnative/pluginscript/pluginscript_language.cpp
index ca1dd66a13..c9d92c09ed 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;
}