Merge pull request #92128 from ckaiser/log-rebuild-crash
Fix log rebuilding crashing when there's no messages
This commit is contained in:
commit
0d52de617f
1 changed files with 4 additions and 0 deletions
|
@ -273,6 +273,10 @@ void EditorLog::_undo_redo_cbk(void *p_self, const String &p_name) {
|
|||
}
|
||||
|
||||
void EditorLog::_rebuild_log() {
|
||||
if (messages.is_empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
log->clear();
|
||||
|
||||
int line_count = 0;
|
||||
|
|
Loading…
Reference in a new issue