summary refs log tree commit diff stats
path: root/tools/mapedit/src/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mapedit/src/map.cpp')
-rw-r--r--tools/mapedit/src/map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mapedit/src/map.cpp b/tools/mapedit/src/map.cpp index b0440fb..1414e16 100644 --- a/tools/mapedit/src/map.cpp +++ b/tools/mapedit/src/map.cpp
@@ -66,7 +66,7 @@ Map::Map(std::string filename)
66 if (!xmlStrcmp(entityDataNode->name, (const xmlChar*) "entity-type")) 66 if (!xmlStrcmp(entityDataNode->name, (const xmlChar*) "entity-type"))
67 { 67 {
68 xmlChar* key = xmlNodeListGetString(doc, entityDataNode->xmlChildrenNode, 1); 68 xmlChar* key = xmlNodeListGetString(doc, entityDataNode->xmlChildrenNode, 1);
69 data.object = MapObject::getAllObjects().at((char*) key); 69 data.object = MapObject::getAllObjects().at((char*) key).get();
70 xmlFree(key); 70 xmlFree(key);
71 } else if (!xmlStrcmp(entityDataNode->name, (const xmlChar*) "entity-position")) 71 } else if (!xmlStrcmp(entityDataNode->name, (const xmlChar*) "entity-position"))
72 { 72 {
@@ -226,7 +226,7 @@ void Map::setTitle(std::string title)
226 this->title = title; 226 this->title = title;
227} 227}
228 228
229std::list<MapObjectEntry> Map::getObjects() 229std::list<MapObjectEntry>& Map::getObjects()
230{ 230{
231 return objects; 231 return objects;
232} 232}