Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable
This commit is contained in:
@ -2939,7 +2939,7 @@ bool TextServerFallback::_shaped_text_add_string(const RID &p_shaped, const Stri
|
||||
ERR_FAIL_COND_V(p_size <= 0, false);
|
||||
|
||||
for (int i = 0; i < p_fonts.size(); i++) {
|
||||
ERR_FAIL_COND_V(!_get_font_data(p_fonts[i]), false);
|
||||
ERR_FAIL_NULL_V(_get_font_data(p_fonts[i]), false);
|
||||
}
|
||||
|
||||
if (p_text.is_empty()) {
|
||||
|
||||
Reference in New Issue
Block a user