avoid crash when loading rando file

This commit is contained in:
Demur Rumed 2025-06-30 00:21:22 +00:00
commit c946502b12
2 changed files with 1 additions and 1 deletions

View file

@ -9,7 +9,6 @@
#include "hints.hpp"
#include "shops.hpp"
#include "pool_functions.hpp"
//#include "debug.hpp"
#include "soh/Enhancements/randomizer/static_data.h"
#include "soh/Enhancements/debugger/performanceTimer.h"

View file

@ -2017,6 +2017,7 @@ void RecalculateAvailableChecks(RandomizerRegion startingRegion /* = RR_ROOT */)
StartPerformanceTimer(PT_RECALCULATE_AVAILABLE_CHECKS);
const auto& ctx = Rando::Context::GetInstance();
logic = ctx->GetLogic();
std::vector<RandomizerCheck> targetLocations;
targetLocations.reserve(RC_MAX);