mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	moved contains functions for multimap to Globals.h
This commit is contained in:
		| @@ -204,8 +204,8 @@ void CIdentifierStorage::registerObject(std::string scope, std::string type, std | ||||
| 	std::string fullID = type + '.' + name; | ||||
| 	checkIdentifier(fullID); | ||||
|  | ||||
| 	auto mapping = std::make_pair(fullID, data); | ||||
| 	if(!registeredObjects.contains(mapping)) | ||||
| 	std::pair<const std::string, ObjectData> mapping = std::make_pair(fullID, data); | ||||
| 	if(!vstd::containsMapping(registeredObjects, mapping)) | ||||
| 	{ | ||||
| 		CLogger::getLogger(CLoggerDomain("identifier"))->traceStream() << "registered " << fullID << " as " << scope << ":" << identifier; | ||||
| 		registeredObjects.insert(mapping); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user