Skip to content

Commit

Permalink
Fix a crash when Ctrl+clicking on the map in city view
Browse files Browse the repository at this point in the history
Closes #1222.
  • Loading branch information
lmoureaux committed Aug 8, 2022
1 parent 86ccec4 commit adba226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/mapctrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ void map_view::shortcut_pressed(shortcut_id id)
break;

case SC_QUICK_SELECT:
if (!king()->menu_bar->delayed_order) {
if (pcity != nullptr && !king()->menu_bar->delayed_order) {
auto pw = new production_widget(this, pcity, false, 0, 0, true);
pw->show();
}
Expand Down

0 comments on commit adba226

Please sign in to comment.