mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Re-throw exception on RMG failure to prevent weird crashes later
This commit is contained in:
@@ -130,6 +130,7 @@ std::unique_ptr<CMap> CMapGenerator::generate()
|
|||||||
catch (rmgException &e)
|
catch (rmgException &e)
|
||||||
{
|
{
|
||||||
logGlobal->error("Random map generation received exception: %s", e.what());
|
logGlobal->error("Random map generation received exception: %s", e.what());
|
||||||
|
throw;
|
||||||
}
|
}
|
||||||
Load::Progress::finish();
|
Load::Progress::finish();
|
||||||
return std::move(map->mapInstance);
|
return std::move(map->mapInstance);
|
||||||
|
|||||||
Reference in New Issue
Block a user