Skip to content

Commit

Permalink
demanded changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikLundell committed May 15, 2024
1 parent 1542a3a commit 3ceddaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5228,7 +5228,7 @@ item_location map::add_item_ret_loc( const tripoint &pos, item obj, bool overflo

item_location map::add_item_ret_loc( const tripoint_bub_ms &pos, item obj, bool overflow )
{
return map::add_item_ret_loc( pos.raw(), obj, overflow );
return map::add_item_ret_loc( pos.raw(), std::move( obj ), overflow );
}

item &map::add_item_or_charges( const tripoint &pos, item obj, bool overflow )
Expand Down Expand Up @@ -5386,7 +5386,7 @@ item &map::add_item( const tripoint &p, item new_item )

item &map::add_item( const tripoint_bub_ms &p, item new_item )
{
return map::add_item( p.raw(), new_item );
return map::add_item( p.raw(), std::move( new_item ) );
}

item &map::add_item( const tripoint &p, item new_item, int copies )
Expand Down

0 comments on commit 3ceddaf

Please sign in to comment.