throw error if generation fails

This commit is contained in:
gymnast86
2026-04-14 02:01:40 -07:00
parent cf604b5fb0
commit 4daf410cce
+2 -1
View File
@@ -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