don't throw error on fail

This commit is contained in:
Ahmed Samy 2013-12-05 22:23:17 +02:00
rodič 7914832be9
revize 772ec208c0
2 změnil soubory, kde provedl 2 přidání a 3 odebrání

Zobrazit soubor

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

Zobrazit soubor

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