summaryrefslogtreecommitdiffstats
path: root/src/model/Map.hpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-09-24 01:38:30 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-09-24 01:38:30 +0200
commitea8840291cdf66784c6a2cb465b63ccfb5483c38 (patch)
tree0ab1e059c3b798d27f8d9a15816c7beb0dd236e8 /src/model/Map.hpp
parent24ae84861379f2f878804b53a457153ad1ad6c1e (diff)
downloadrpgedit-ea8840291cdf66784c6a2cb465b63ccfb5483c38.tar
rpgedit-ea8840291cdf66784c6a2cb465b63ccfb5483c38.zip
New event-driven goodness
Diffstat (limited to 'src/model/Map.hpp')
-rw-r--r--src/model/Map.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/Map.hpp b/src/model/Map.hpp
index 5d6ba01..9d4eded 100644
--- a/src/model/Map.hpp
+++ b/src/model/Map.hpp
@@ -67,8 +67,8 @@ public:
return entities;
}
- Entity & getPlayerEntity() const {
- return *playerEntity;
+ const std::shared_ptr<Entity> & getPlayerEntity() const {
+ return playerEntity;
}
size_t getWidth() const {