From 8e0395e39c52b148d5ff9ef9fdd6a6d33e7b86e9 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 26 Sep 2014 02:04:01 +0200 Subject: Map: fix move constructor/assignment --- src/model/Map.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/model/Map.hpp b/src/model/Map.hpp index acf93b1..b8a8e18 100644 --- a/src/model/Map.hpp +++ b/src/model/Map.hpp @@ -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); } -- cgit v1.2.3