summaryrefslogtreecommitdiffstats
path: root/src/model
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-09-23 20:58:49 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-09-23 20:58:49 +0200
commit24ae84861379f2f878804b53a457153ad1ad6c1e (patch)
tree02cdc5ba3aec624cb558b74f5a220375a51cc15a /src/model
parent8f964bb27dcac5d0620e0dfab211a4bc51cbd707 (diff)
downloadrpgedit-24ae84861379f2f878804b53a457153ad1ad6c1e.tar
rpgedit-24ae84861379f2f878804b53a457153ad1ad6c1e.zip
Rewrite main loop
Diffstat (limited to 'src/model')
-rw-r--r--src/model/Map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/Map.cpp b/src/model/Map.cpp
index 48f5669..8081255 100644
--- a/src/model/Map.cpp
+++ b/src/model/Map.cpp
@@ -45,7 +45,7 @@ std::shared_ptr<Map> Map::load(__attribute__((unused)) const std::string &name)
}
}
- map->playerEntity.reset(new Entity("square"));
+ map->playerEntity = std::make_shared<Entity>("square");
map->playerEntity->moveTo(6, 6);
map->entities.push_back(map->playerEntity);