don't throw error on fail

This commit is contained in:
Ahmed Samy 2013-12-05 22:23:17 +02:00
parent 7914832be9
commit 772ec208c0
2 changed files with 2 additions and 3 deletions

View File

@ -379,7 +379,6 @@ SpawnPtr CreatureManager::getSpawnForPlacePos(const Position& pos)
return spawn; return spawn;
} }
g_logger.debug(stdext::format("failed to find spawn at %s", stdext::to_string(pos)));
return nullptr; return nullptr;
} }

View File

@ -280,8 +280,8 @@ void Map::saveOtbm(const std::string& fileName)
root->startNode(OTBM_MAP_DATA); root->startNode(OTBM_MAP_DATA);
{ {
// own description. const auto& descvec = getDescriptions();
for(const auto& desc : getDescriptions()) { for(const auto& desc : descvec) {
root->addU8(OTBM_ATTR_DESCRIPTION); root->addU8(OTBM_ATTR_DESCRIPTION);
root->addString(desc); root->addString(desc);
} }