mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Fix crash on hovering Market of Time (unfinished H3 object)
This commit is contained in:
		| @@ -404,7 +404,7 @@ void CObjectClassesHandler::afterLoadFinalization() | ||||
| std::string CObjectClassesHandler::getObjectName(si32 type, si32 subtype) const | ||||
| { | ||||
| 	const auto handler = getHandlerFor(type, subtype); | ||||
| 	if (handler->hasNameTextID()) | ||||
| 	if (handler && handler->hasNameTextID()) | ||||
| 		return handler->getNameTranslated(); | ||||
| 	else | ||||
| 		return objects[type]->getNameTranslated(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user