mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 13:23:45 -07:00
avoid crash when loading rando file
This commit is contained in:
parent
112fbc5a4b
commit
47645c5a07
2 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,6 @@
|
||||||
#include "hints.hpp"
|
#include "hints.hpp"
|
||||||
#include "shops.hpp"
|
#include "shops.hpp"
|
||||||
#include "pool_functions.hpp"
|
#include "pool_functions.hpp"
|
||||||
//#include "debug.hpp"
|
|
||||||
#include "soh/Enhancements/randomizer/static_data.h"
|
#include "soh/Enhancements/randomizer/static_data.h"
|
||||||
#include "soh/Enhancements/debugger/performanceTimer.h"
|
#include "soh/Enhancements/debugger/performanceTimer.h"
|
||||||
|
|
||||||
|
|
|
@ -2008,6 +2008,7 @@ void RecalculateAvailableChecks(RandomizerRegion startingRegion /* = RR_ROOT */)
|
||||||
StartPerformanceTimer(PT_RECALCULATE_AVAILABLE_CHECKS);
|
StartPerformanceTimer(PT_RECALCULATE_AVAILABLE_CHECKS);
|
||||||
|
|
||||||
const auto& ctx = Rando::Context::GetInstance();
|
const auto& ctx = Rando::Context::GetInstance();
|
||||||
|
logic = ctx->GetLogic();
|
||||||
|
|
||||||
std::vector<RandomizerCheck> targetLocations;
|
std::vector<RandomizerCheck> targetLocations;
|
||||||
targetLocations.reserve(RC_MAX);
|
targetLocations.reserve(RC_MAX);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue