Skip to content

Commit

Permalink
Make direct casting among Error and godot_error enums (godotengine#23015
Browse files Browse the repository at this point in the history
).
  • Loading branch information
marxin committed Feb 18, 2019
1 parent f5f2b5d commit 66a4389
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/gdnative/pluginscript/pluginscript_language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 66a4389

Please sign in to comment.