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; | ||||
|     } | ||||
| 
 | ||||
|     g_logger.debug(stdext::format("failed to find spawn at %s", stdext::to_string(pos))); | ||||
|     return nullptr; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -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); | ||||
|                 } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Ahmed Samy
						Ahmed Samy