Core/MMaps: Started this new branch as my playground for mmaps.
Made some refactoring Free memory taken by mmaps when a map is destroyed.
This commit is contained in:
1 parent
993513ce8d
commit
d74dcabd85
10 files changed
+128
-139
No files matched your search
@@ -1,4 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2008-2013 TrinityCore <http://www.trinitycore.org/>
|
||||
* Copyright (C) 2005-2011 MaNGOS <http://getmangos.com/>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -38,7 +39,7 @@ PathGenerator::PathGenerator(const Unit* owner) :
|
||||
uint32 mapId = _sourceUnit->GetMapId();
|
||||
if (MMAP::MMapFactory::IsPathfindingEnabled(mapId))
|
||||
{
|
||||
MMAP::MMapManager* mmap = MMAP::MMapFactory::createOrGetMMapManager();
|
||||
MMAP::MMapManager* mmap = MMAP::MMapFactory::CreateOrGetMMapManager();
|
||||
_navMesh = mmap->GetNavMesh(mapId);
|
||||
_navMeshQuery = mmap->GetNavMeshQuery(mapId, _sourceUnit->GetInstanceId());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user