mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-29 21:02:18 -05:00
Fixes crash from attempted nullptr access.
This commit is contained in:
parent
bc49998e55
commit
c7c29034eb
@ -694,7 +694,8 @@ void CheckTrackerFlagSet(int16_t flagType, int32_t flag) {
|
||||
for (auto& loc : Rando::StaticData::GetLocationTable()) {
|
||||
if ((!IS_RANDO && ((loc.GetQuest() == RCQUEST_MQ && !IS_MASTER_QUEST) ||
|
||||
(loc.GetQuest() == RCQUEST_VANILLA && IS_MASTER_QUEST))) ||
|
||||
(IS_RANDO && ((OTRGlobals::Instance->gRandoContext->GetDungeons()->GetDungeonFromScene(loc.GetScene())->IsMQ() &&
|
||||
(IS_RANDO && !(OTRGlobals::Instance->gRandoContext->GetDungeons()->GetDungeonFromScene(loc.GetScene()) == nullptr) &&
|
||||
((OTRGlobals::Instance->gRandoContext->GetDungeons()->GetDungeonFromScene(loc.GetScene())->IsMQ() &&
|
||||
loc.GetQuest() == RCQUEST_VANILLA) ||
|
||||
OTRGlobals::Instance->gRandoContext->GetDungeons()->GetDungeonFromScene(loc.GetScene())->IsVanilla() &&
|
||||
loc.GetQuest() == RCQUEST_MQ))) {
|
||||
|
Loading…
Reference in New Issue
Block a user