Fix crash on Save pressed with no bt edited
This commit is contained in:
parent
507dc8d850
commit
afbf095d1b
|
@ -681,6 +681,9 @@ void LimboAIEditor::_on_header_pressed() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void LimboAIEditor::_on_save_pressed() {
|
void LimboAIEditor::_on_save_pressed() {
|
||||||
|
if (task_tree->get_bt().is_null()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
String path = task_tree->get_bt()->get_path();
|
String path = task_tree->get_bt()->get_path();
|
||||||
if (path.empty()) {
|
if (path.empty()) {
|
||||||
save_dialog->popup_centered_ratio();
|
save_dialog->popup_centered_ratio();
|
||||||
|
|
Loading…
Reference in New Issue