Fix crash on Save pressed with no bt edited

This commit is contained in:
Serhii Snitsaruk 2022-09-06 13:08:27 +02:00
parent 507dc8d850
commit afbf095d1b
1 changed files with 3 additions and 0 deletions

View File

@ -681,6 +681,9 @@ void LimboAIEditor::_on_header_pressed() const {
}
void LimboAIEditor::_on_save_pressed() {
if (task_tree->get_bt().is_null()) {
return;
}
String path = task_tree->get_bt()->get_path();
if (path.empty()) {
save_dialog->popup_centered_ratio();