mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Replace error checks against size
with is_empty
This commit is contained in:
parent
94dbf69f5d
commit
684752e75b
58 changed files with 116 additions and 116 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue