[Editor] Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable
This commit is contained in:
parent
5f1e56ff26
commit
75ee58fd04
61 changed files with 217 additions and 217 deletions
|
|
@ -456,7 +456,7 @@ void EditorToaster::_popup_str(String p_message, Severity p_severity, String p_t
|
|||
|
||||
// Retrieve the label back, then update the text.
|
||||
Label *message_label = toasts[control].message_label;
|
||||
ERR_FAIL_COND(!message_label);
|
||||
ERR_FAIL_NULL(message_label);
|
||||
message_label->set_text(p_message);
|
||||
message_label->set_text_overrun_behavior(TextServer::OVERRUN_NO_TRIMMING);
|
||||
message_label->set_custom_minimum_size(Size2());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue