Browse Source

Crash fix when map is not yet loaded

Image 2 years ago
parent
commit
54c82b64fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      EQ2/source/WorldServer/Zone/region_map_v1.cpp

+ 1 - 1
EQ2/source/WorldServer/Zone/region_map_v1.cpp

@@ -194,7 +194,7 @@ void RegionMapV1::IdentifyRegionsInGrid(Client *client, const glm::vec3 &locatio
 	int region_num = 0;
 
 	int32 grid = 0;
-	if (client->GetPlayer()->GetMap() != nullptr)
+	if (client->GetPlayer()->GetMap() != nullptr && client->GetPlayer()->GetMap()->IsMapLoaded())
 	{
 		grid = client->GetPlayer()->GetMap()->GetGrid()->GetGridIDByLocation(location.x, location.y, location.z);
 	}