From 9ab58a8d07576511e6ff154ef68025308cc224c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Sat, 17 Jan 2026 18:03:51 +0000 Subject: [PATCH] Fix rando objects not randomizing (#6150) Recent changes in init ordering had param hashmap built before static locations setup by hooks --- soh/soh/OTRGlobals.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp index f71ed8097..0c87bce52 100644 --- a/soh/soh/OTRGlobals.cpp +++ b/soh/soh/OTRGlobals.cpp @@ -1488,8 +1488,6 @@ extern "C" void InitOTR(int argc, char* argv[]) { SohGui::SetupGuiElements(); SohGui::SetupMenuElements(); - Rando::StaticData::InitHashMaps(); - OTRGlobals::Instance->gRandoContext->AddExcludedOptions(); AudioCollection::Instance = new AudioCollection(); ActorDB::Instance = new ActorDB(); #ifdef __APPLE__ @@ -1546,6 +1544,8 @@ extern "C" void InitOTR(int argc, char* argv[]) { Anchor::Instance->Enable(); } ShipInit::InitAll(); + Rando::StaticData::InitHashMaps(); + OTRGlobals::Instance->gRandoContext->AddExcludedOptions(); } extern "C" void SaveManager_ThreadPoolWait() {