Skip to content

Commit

Permalink
Fix Run Dialog not loading map configs when opened from the map editor
Browse files Browse the repository at this point in the history
It was just loading the generic run configs which don't warp to maps

Fixes #1522
  • Loading branch information
sirjuddington committed Jun 21, 2023
1 parent 8892cdf commit a6fe39f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MapEditor/UI/MapEditorWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ bool MapEditorWindow::handleAction(string_view id)
Archive* archive = nullptr;
if (auto head = mdesc_current.head.lock())
archive = head->parent();
RunDialog dlg(this, archive, id == "mapw_run_map");
RunDialog dlg(this, archive, id == "mapw_run_map", true);
if (id == "mapw_quick_run_map" || dlg.ShowModal() == wxID_OK)
{
auto& edit_context = mapeditor::editContext();
Expand Down

0 comments on commit a6fe39f

Please sign in to comment.