summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-10-29 19:40:43 +0100
committerBardur Arantsson <bardur@scientician.net>2015-10-31 14:27:10 +0100
commitcc50d2db6418690470ead3faf71e0818eff1b8e4 (patch)
treef8061836e15b87c78b4aef5009849cecda77eb18
parent8868e95a023540e1d5007e9b5d8d1bf35a7ae9c6 (diff)
Fix clang warning; don't explicitly move
-rw-r--r--src/object1.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object1.cc b/src/object1.cc
index 95cd052..eca2608 100644
--- a/src/object1.cc
+++ b/src/object1.cc
@@ -5268,7 +5268,7 @@ static bool_ get_item_floor(int *cp, cptr pmt, cptr str, int mode, object_filter
/* Floor items? */
auto const floor_list =
- floor ? std::move(scan_floor(p_ptr->py, p_ptr->px, filter))
+ floor ? scan_floor(p_ptr->py, p_ptr->px, filter)
: std::vector<int>();
assert(floor_list.size() <= 23);
int const floor_num = floor_list.size(); // "int" for warning avoidance