Replace error checks against size with is_empty

This commit is contained in:
A Thousand Ships 2024-01-19 13:21:39 +01:00
parent 94dbf69f5d
commit 684752e75b
No known key found for this signature in database
GPG key ID: 2033189A662F8BD7
58 changed files with 116 additions and 116 deletions

View file

@ -473,7 +473,7 @@ void ShaderTextEditor::_validate_script() {
if (last_compile_result != OK) {
//preprocessor error
ERR_FAIL_COND(err_positions.size() == 0);
ERR_FAIL_COND(err_positions.is_empty());
String err_text = error_pp;
int err_line = err_positions.front()->get().line;