aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-06-08 18:48:35 -0300
committerShauren <shauren.trinity@gmail.com>2018-03-28 19:57:00 +0200
commit95615a4b0d9af431b559bcca68ce9f9f38381397 (patch)
treeffd40826fa92e2d7d44859a5d9323387b397a5e6 /src
parent570692be9f44f9123c309f311c3aadd1ef2f5aa2 (diff)
Core/Vmaps: build fix mk II
(cherry picked from commit d2a30fef1371cf904e56f96042d686c9da439175)
Diffstat (limited to 'src')
-rw-r--r--src/common/Collision/RegularGrid.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/Collision/RegularGrid.h b/src/common/Collision/RegularGrid.h
index 84aa6572486..5de9d80c893 100644
--- a/src/common/Collision/RegularGrid.h
+++ b/src/common/Collision/RegularGrid.h
@@ -59,14 +59,14 @@ public:
{
Node& node = getGrid(x, y);
node.insert(value);
- memberTable.insert(MemberTable::value_type(&value, &node));
+ memberTable.emplace(&value, &node);
}
}
}
void remove(const T& value)
{
- for (typename MemberTable::value_type& p : Trinity::Containers::MapEqualRange(memberTable, &value))
+ for (auto& p : Trinity::Containers::MapEqualRange(memberTable, &value))
p.second->remove(value);
// Remove the member
memberTable.erase(&value);