1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

Re-throw exception on RMG failure to prevent weird crashes later

This commit is contained in:
Ivan Savenko
2024-05-08 08:49:05 +00:00
parent 6a1477838d
commit f5824ccea4

View File

@ -130,6 +130,7 @@ std::unique_ptr<CMap> CMapGenerator::generate()
catch (rmgException &e)
{
logGlobal->error("Random map generation received exception: %s", e.what());
throw;
}
Load::Progress::finish();
return std::move(map->mapInstance);