From 82513c910403f39bd2c2e994065e152af2d23c32 Mon Sep 17 00:00:00 2001 From: phosit Date: Mon, 30 Dec 2024 15:02:45 +0100 Subject: [PATCH] Catch all std::exception when loading a map Since 0eed117e6d exceptions from the map generation script are rethrown in the main thread but not all of them are catched. --- source/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/main.cpp b/source/main.cpp index 28e23c0338..bc00fd4a66 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -333,7 +333,7 @@ static int ProgressiveLoad() break; } } - catch (PSERROR_Game_World_MapLoadFailed& e) + catch (std::exception& e) { // Map loading failed