Skip to content

Commit

Permalink
Fix message when NPC doesn't find book to read
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloxaf committed Sep 26, 2019
1 parent 34620d6 commit ccf75e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/game_inventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1033,9 +1033,9 @@ class read_inventory_preset: public pickup_inventory_preset

item_location game_menus::inv::read( player &pl )
{
return inv_internal( pl, read_inventory_preset( pl ),
_( "Read" ), 1,
_( "You have nothing to read." ) );
const std::string msg = pl.is_player() ? _( "You have nothing to read." ) :
string_format( _( "%s has nothing to read." ), pl.disp_name() );
return inv_internal( pl, read_inventory_preset( pl ), _( "Read" ), 1, msg );
}

class steal_inventory_preset : public pickup_inventory_preset
Expand Down

0 comments on commit ccf75e9

Please sign in to comment.