mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Throwing runtime_errors instead of string (or even char*) objects.
This commit is contained in:
		| @@ -993,7 +993,7 @@ void CGameState::init(StartInfo * si) | ||||
| 		if(map->checksum != scenarioOps->mapfileChecksum) | ||||
| 		{ | ||||
| 			tlog1 << "Wrong map checksum!!!" << std::endl; | ||||
| 			throw std::string("Wrong checksum"); | ||||
| 			throw std::runtime_error("Wrong checksum"); | ||||
| 		} | ||||
| 	} | ||||
| 	else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user