diff options
author | Shauren <shauren.trinity@gmail.com> | 2021-04-24 23:28:42 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-04-25 00:11:36 +0200 |
commit | bb8f22ed2013f8cb6b9d61c738f2ebd96b83722f (patch) | |
tree | 37e089d220d7c5967266fc71b30ef36de81e67c3 /src/common/Collision/Models/GameObjectModel.cpp | |
parent | 4e00cb7c157a0bd25a0b48a80a1f71a1817010bf (diff) |
Core/Vmaps: Reduce memory used by vmaps (and their size, slightly)
Diffstat (limited to 'src/common/Collision/Models/GameObjectModel.cpp')
-rw-r--r-- | src/common/Collision/Models/GameObjectModel.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/Collision/Models/GameObjectModel.cpp b/src/common/Collision/Models/GameObjectModel.cpp index 148ecff9066..65a530e7c0e 100644 --- a/src/common/Collision/Models/GameObjectModel.cpp +++ b/src/common/Collision/Models/GameObjectModel.cpp @@ -98,7 +98,7 @@ void LoadGameObjectModelList(std::string const& dataPath) GameObjectModel::~GameObjectModel() { if (iModel) - ((VMAP::VMapManager2*)VMAP::VMapFactory::createOrGetVMapManager())->releaseModelInstance(name); + ((VMAP::VMapManager2*)VMAP::VMapFactory::createOrGetVMapManager())->releaseModelInstance(iModel->GetName()); } bool GameObjectModel::initialize(std::unique_ptr<GameObjectModelOwnerBase> modelOwner, std::string const& dataPath) @@ -120,7 +120,6 @@ bool GameObjectModel::initialize(std::unique_ptr<GameObjectModelOwnerBase> model if (!iModel) return false; - name = it->second.name; iPos = modelOwner->GetPosition(); iScale = modelOwner->GetScale(); iInvScale = 1.f / iScale; |