mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Maps: fixed map loading after merge if datadir was different from local
This commit is contained in:
@@ -71,7 +71,7 @@ Map::~Map()
|
||||
|
||||
bool Map::ExistMap(uint32 mapid, int gx, int gy)
|
||||
{
|
||||
std::string fileName = Trinity::StringFormat("maps/%03u%02u%02u.map", mapid, gx, gy);
|
||||
std::string fileName = Trinity::StringFormat("%smaps/%03u%02u%02u.map", sWorld->GetDataPath().c_str(), mapid, gx, gy);
|
||||
|
||||
bool ret = false;
|
||||
FILE* file = fopen(fileName.c_str(), "rb");
|
||||
|
||||
Reference in New Issue
Block a user