summaryrefslogtreecommitdiff
path: root/src/mapmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapmanager.cpp')
-rw-r--r--src/mapmanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mapmanager.cpp b/src/mapmanager.cpp
index 360503f9..081ad508 100644
--- a/src/mapmanager.cpp
+++ b/src/mapmanager.cpp
@@ -92,17 +92,17 @@ Map *MapManager::getMap(const unsigned int mapId)
return result;
}
-bool MapManager::isLoaded(const unsigned int mapId)
+bool MapManager::isLoaded(const unsigned int mapId) const
{
bool ret = false;
- std::map<unsigned int, Map *>::iterator i;
+ std::map<unsigned int, Map *>::const_iterator i;
i = maps.find(mapId);
if (i != maps.end())
{
ret = true;
}
- return ret;
+ return ret;
}