From 4daf410cce4da695c8ef582868fbf97666ca9afb Mon Sep 17 00:00:00 2001 From: gymnast86 Date: Tue, 14 Apr 2026 02:01:40 -0700 Subject: [PATCH] throw error if generation fails --- src/d/d_com_inf_game.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/d/d_com_inf_game.cpp b/src/d/d_com_inf_game.cpp index af0591783d..2c8c257b3b 100644 --- a/src/d/d_com_inf_game.cpp +++ b/src/d/d_com_inf_game.cpp @@ -2284,7 +2284,8 @@ int dComIfGd_setShadow(u32 param_0, s8 param_1, J3DModel* param_2, cXyz* param_3 #if TARGET_PC void dComIfGs_setupRandomizerSave() { randomizer::Randomizer randomizer; - randomizer.Generate(); + if (randomizer.Generate()) + throw std::runtime_error("Randomizer Generation Faild"); auto world = randomizer.GetWorlds()[0].get(); // Set starting flags