Map: fix move constructor/assignment

This commit is contained in:
Matthias Schiffer 2014-09-26 02:04:01 +02:00
parent 519119db3d
commit 8e0395e39c

View file

@ -148,6 +148,7 @@ public:
static_cast<_Map>(*this) = std::move(other);
entities = std::move(other.entities);
positions = std::move(other.positions);
entityStates = std::move(other.entityStates);
return *this;
@ -155,6 +156,7 @@ public:
Map(Map &&other) : _Map(std::move(other)) {
entities = std::move(other.entities);
positions = std::move(other.positions);
entityStates = std::move(other.entityStates);
}