Make direct casting among Error and godot_error enums (#23015).

This commit is contained in:
marxin 2019-02-18 10:26:22 +01:00
parent f5f2b5d4af
commit 66a43898d4

View file

@ -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;
}