Skip to content

Commit

Permalink
change parameter of form_from_map to Character
Browse files Browse the repository at this point in the history
  • Loading branch information
KorGgenT committed Oct 19, 2019
1 parent 3b79f53 commit d861a43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/inventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,14 +391,14 @@ static int count_charges_in_list( const itype *type, const map_stack &items )
return 0;
}

void inventory::form_from_map( const tripoint &origin, int range, const player *pl,
void inventory::form_from_map( const tripoint &origin, int range, const Character *pl,
bool assign_invlet,
bool clear_path )
{
form_from_map( g->m, origin, range, pl, assign_invlet, clear_path );
}

void inventory::form_from_map( map &m, const tripoint &origin, int range, const player *pl,
void inventory::form_from_map( map &m, const tripoint &origin, int range, const Character *pl,
bool assign_invlet,
bool clear_path )
{
Expand Down
4 changes: 2 additions & 2 deletions src/inventory.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ class inventory : public visitable<inventory>
* the player's worn items / weapon
*/
void restack( player &p );
void form_from_map( const tripoint &origin, int range, const player *pl = nullptr,
void form_from_map( const tripoint &origin, int range, const Character *pl = nullptr,
bool assign_invlet = true,
bool clear_path = true );
void form_from_map( map &m, const tripoint &origin, int range, const player *pl = nullptr,
void form_from_map( map &m, const tripoint &origin, int range, const Character *pl = nullptr,
bool assign_invlet = true,
bool clear_path = true );
/**
Expand Down

0 comments on commit d861a43

Please sign in to comment.