Fix misuses of error macros

This commit is contained in:
Danil Alexeev
2023-04-18 10:20:48 +03:00
parent d6dde819be
commit 36bedd341a
11 changed files with 5 additions and 13 deletions

View File

@@ -401,7 +401,6 @@ Color Color::named(const String &p_name) {
int idx = find_named_color(p_name);
if (idx == -1) {
ERR_FAIL_V_MSG(Color(), "Invalid color name: " + p_name + ".");
return Color();
}
return named_colors[idx].color;
}