Merge pull request #92128 from ckaiser/log-rebuild-crash

Fix log rebuilding crashing when there's no messages
This commit is contained in:
Rémi Verschelde 2024-05-23 23:25:39 +02:00
commit 0d52de617f
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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;