--- a/QTfrontend/util/DataManager.cpp Tue Dec 03 18:09:54 2013 +0100
+++ b/QTfrontend/util/DataManager.cpp Tue Dec 03 23:54:58 2013 +0400
@@ -98,8 +98,7 @@
MapModel * DataManager::staticMapModel()
{
if (m_staticMapModel == NULL) {
- m_staticMapModel = new MapModel();
- m_staticMapModel->loadMaps(MapModel::StaticMap);
+ m_staticMapModel = new MapModel(MapModel::StaticMap, this);
}
return m_staticMapModel;
}
@@ -107,8 +106,7 @@
MapModel * DataManager::missionMapModel()
{
if (m_missionMapModel == NULL) {
- m_missionMapModel = new MapModel();
- m_missionMapModel->loadMaps(MapModel::MissionMap);
+ m_missionMapModel = new MapModel(MapModel::MissionMap, this);
}
return m_missionMapModel;
}