Merge pull request #26007 from marxin/fix-23015-cast

Make direct casting among Error and godot_error enums (#23015).
This commit is contained in:
Rémi Verschelde 2019-02-18 13:51:16 +01:00 committed by GitHub
commit 98e4bda9f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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++) { 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; return (Error)tmp;
return err;
} }
return ERR_UNAVAILABLE; return ERR_UNAVAILABLE;
} }