mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Vmaps: Replace manual reference counting with shared_ptr and slightly reduce memory use by deduplicating model name strings
This commit is contained in:
@@ -93,11 +93,7 @@ bool LoadGameObjectModelList(std::string const& dataPath)
|
||||
return true;
|
||||
}
|
||||
|
||||
GameObjectModel::~GameObjectModel()
|
||||
{
|
||||
if (iModel)
|
||||
VMAP::VMapFactory::createOrGetVMapManager()->releaseModelInstance(iModel->GetName());
|
||||
}
|
||||
GameObjectModel::~GameObjectModel() = default;
|
||||
|
||||
bool GameObjectModel::initialize(std::unique_ptr<GameObjectModelOwnerBase> modelOwner, std::string const& dataPath)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user