1
0
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:
Michał W. Urbańczyk
2012-04-22 07:32:45 +00:00
parent 9c770777fb
commit 017013a5a4
20 changed files with 31 additions and 31 deletions

View File

@@ -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