diff options
Diffstat (limited to 'tools/mapedit/src/map.h')
| -rw-r--r-- | tools/mapedit/src/map.h | 4 |
1 files changed, 2 insertions, 2 deletions
| diff --git a/tools/mapedit/src/map.h b/tools/mapedit/src/map.h index 52e047d..850a66b 100644 --- a/tools/mapedit/src/map.h +++ b/tools/mapedit/src/map.h | |||
| @@ -44,7 +44,7 @@ class MapWriteException: public std::exception | |||
| 44 | }; | 44 | }; |
| 45 | 45 | ||
| 46 | struct MapObjectEntry { | 46 | struct MapObjectEntry { |
| 47 | std::shared_ptr<MapObject> object; | 47 | MapObject* object; |
| 48 | std::pair<double, double> position; | 48 | std::pair<double, double> position; |
| 49 | }; | 49 | }; |
| 50 | 50 | ||
| @@ -64,7 +64,7 @@ class Map { | |||
| 64 | bool hasUnsavedChanges() const; | 64 | bool hasUnsavedChanges() const; |
| 65 | void setTileAt(int x, int y, int tile); | 65 | void setTileAt(int x, int y, int tile); |
| 66 | int getTileAt(int x, int y) const; | 66 | int getTileAt(int x, int y) const; |
| 67 | std::list<MapObjectEntry> getObjects(); | 67 | std::list<MapObjectEntry>& getObjects(); |
| 68 | 68 | ||
| 69 | private: | 69 | private: |
| 70 | std::list<MapObjectEntry> objects; | 70 | std::list<MapObjectEntry> objects; |
