mirror of
https://github.com/godotengine/godot.git
synced 2025-10-26 19:24:18 +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
|
|
@ -510,7 +510,7 @@ void GDScriptParser::push_multiline(bool p_state) {
|
|||
}
|
||||
|
||||
void GDScriptParser::pop_multiline() {
|
||||
ERR_FAIL_COND_MSG(multiline_stack.size() == 0, "Parser bug: trying to pop from multiline stack without available value.");
|
||||
ERR_FAIL_COND_MSG(multiline_stack.is_empty(), "Parser bug: trying to pop from multiline stack without available value.");
|
||||
multiline_stack.pop_back();
|
||||
tokenizer->set_multiline_mode(multiline_stack.size() > 0 ? multiline_stack.back()->get() : false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue