don't throw error on fail
This commit is contained in:
parent
7914832be9
commit
772ec208c0
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue