Skip to content

Commit

Permalink
Fix weird std::move (#3471)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekiro authored May 26, 2021
1 parent 677e5e5 commit 9fd6c8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/teleport.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class Teleport final : public Item, public Cylinder
const Position& getDestPos() const {
return destPos;
}
void setDestPos(Position pos) {
destPos = std::move(pos);
void setDestPos(const Position& pos) {
destPos = pos;
}

bool checkInfinityLoop(Tile* destTile);
Expand Down

0 comments on commit 9fd6c8e

Please sign in to comment.