Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhilkinSerg committed Jul 28, 2020
1 parent a7723cf commit 583f49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inventory_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1886,7 +1886,7 @@ inventory_input inventory_selector::get_input()
point p = o_p.value();
if( window_contains_point_relative( w_inv, p ) ) {
res.entry = find_entry_by_coordinate( p );
if( res.entry != nullptr ) {
if( res.entry != nullptr && res.entry->is_selectable() ) {
return res;
}
}
Expand Down

0 comments on commit 583f49f

Please sign in to comment.