Fix problem with viewing unit descriptions for hidden units
This applies when a specific unit of that type is available, for example in the recall dialog.
This commit is contained in:
parent
057749bd76
commit
87d92119f3
1 changed files with 4 additions and 1 deletions
|
@ -493,7 +493,10 @@ void unit_preview_pane::set_displayed_unit(const unit& u)
|
|||
void unit_preview_pane::profile_button_callback()
|
||||
{
|
||||
if(get_window()) {
|
||||
help::show_unit_help((*get_window()).video(), current_type_);
|
||||
const unit_type* ut = unit_types.find(current_type_);
|
||||
if(ut != nullptr) {
|
||||
help::show_unit_description((*get_window()).video(), *ut);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue