Skip to content

Commit

Permalink
Merge pull request #92128 from ckaiser/log-rebuild-crash
Browse files Browse the repository at this point in the history
Fix log rebuilding crashing when there's no messages
  • Loading branch information
akien-mga committed May 23, 2024
2 parents 5d6c789 + 6c62392 commit 0d52de6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions editor/editor_log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0d52de6

Please sign in to comment.