Explorar o código

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

Ivan Savenko hai 1 ano
pai
achega
f5824ccea4
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      lib/rmg/CMapGenerator.cpp

+ 1 - 0
lib/rmg/CMapGenerator.cpp

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