Map: fix move constructor/assignment
This commit is contained in:
parent
519119db3d
commit
8e0395e39c
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue