You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Fixed log rebuilding crashing when there's no messages
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user