mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-22 11:21:18 +02:00
avoid scene\gui\text_edit.cpp:6054 - Index p_line = 29 is out of bounds (text.size() = 8).
This commit is contained in:
parent
fff15d837d
commit
45e7dfe7bf
@ -6051,7 +6051,7 @@ int TextEdit::get_indent_level(int p_line) const {
|
||||
|
||||
bool TextEdit::is_line_comment(int p_line) const {
|
||||
// Checks to see if this line is the start of a comment.
|
||||
ERR_FAIL_INDEX_V(p_line, text.size(), false);
|
||||
// ERR_FAIL_INDEX_V(p_line, text.size(), false);
|
||||
|
||||
int line_length = text[p_line].size();
|
||||
for (int i = 0; i < line_length - 1; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user