Skip to content

Commit

Permalink
micro chng
Browse files Browse the repository at this point in the history
  • Loading branch information
atic_an committed Mar 6, 2021
1 parent 89fcd22 commit fa80de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MapObj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void MapObj::PressE()
if (itm.inventory) {
auto &inv = Player::Get().GetInv();
//inv.insert(inv.end(), std::make_move_iterator(items.begin() + ind_E), std::make_move_iterator(items.begin() + ind_E + 1));
inv.push_back(std::move(itm));
inv.emplace_back(std::move(itm));
items.erase(items.begin() + ind_E);
} else {
items.erase(items.begin() + ind_E);
Expand Down

0 comments on commit fa80de7

Please sign in to comment.