diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-09-23 20:58:49 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-09-23 20:58:49 +0200 |
commit | 24ae84861379f2f878804b53a457153ad1ad6c1e (patch) | |
tree | 02cdc5ba3aec624cb558b74f5a220375a51cc15a /src/model | |
parent | 8f964bb27dcac5d0620e0dfab211a4bc51cbd707 (diff) | |
download | rpgedit-24ae84861379f2f878804b53a457153ad1ad6c1e.tar rpgedit-24ae84861379f2f878804b53a457153ad1ad6c1e.zip |
Rewrite main loop
Diffstat (limited to 'src/model')
-rw-r--r-- | src/model/Map.cpp | 2 |
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); |