Skip to content

Commit

Permalink
Merge pull request #1000 from AlexMacocian/alexmacocian/fix-travelwin…
Browse files Browse the repository at this point in the history
…dow-nullpointer

Fix TravelWindow nullptr
  • Loading branch information
DubbleClick authored Apr 11, 2024
2 parents 8d76898 + 7c15e3e commit 74d86e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GWToolboxdll/Windows/TravelWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ namespace {
return TravelWindow::Instance();
}

bool ImInPresearing() { return GW::Map::GetCurrentMapInfo()->region == GW::Region_Presearing; }
bool ImInPresearing() { return GW::Map::GetIsMapLoaded() && GW::Map::GetCurrentMapInfo()->region == GW::Region_Presearing; }

bool IsInGH()
{
Expand Down

0 comments on commit 74d86e8

Please sign in to comment.