summaryrefslogtreecommitdiffstats
path: root/src/model/Map.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-09-24 17:39:36 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-09-24 17:39:36 +0200
commitefa8640aabb3b4df31531ecd41ed1073dda63ed2 (patch)
tree151ddb75a5866784ce6b65757e0eea68aee6e05b /src/model/Map.cpp
parentaadcecf2022ec13d15da5d816567779740a37da7 (diff)
downloadrpgedit-efa8640aabb3b4df31531ecd41ed1073dda63ed2.tar
rpgedit-efa8640aabb3b4df31531ecd41ed1073dda63ed2.zip
Make MapContext keep a complete copy of the map
Diffstat (limited to 'src/model/Map.cpp')
-rw-r--r--src/model/Map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/Map.cpp b/src/model/Map.cpp
index aff05d1..21fbe00 100644
--- a/src/model/Map.cpp
+++ b/src/model/Map.cpp
@@ -31,8 +31,8 @@ namespace RPGEdit {
namespace Model {
-std::shared_ptr<Map> Map::load(__attribute__((unused)) const std::string &name) {
- std::shared_ptr<Map> map(new Map(16, 16, 2));
+std::unique_ptr<Map> Map::load(__attribute__((unused)) const std::string &name) {
+ std::unique_ptr<Map> map(new Map(16, 16, 2));
map->tileset.push_back("dirt");
map->tileset.push_back("horizontal_bar");