From 99ee958e0a327e3a44a600d1c709d90224cfb885 Mon Sep 17 00:00:00 2001 From: Giacomo Pozzoni Date: Sat, 29 Aug 2020 13:02:42 +0200 Subject: Core/Misc: Fix issues reported by static analysis (#25351) * Core/Misc: Fix issues reported by static analysis * Core/Vmaps: Code cleanup after e77716188861d4aa83b227a90e04a66b63baeb1f (cherry picked from commit cfc8f7b442a9dba07b198fcebe2c02ab89cf0a8b) --- src/common/Collision/Models/GameObjectModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/Collision/Models/GameObjectModel.cpp') diff --git a/src/common/Collision/Models/GameObjectModel.cpp b/src/common/Collision/Models/GameObjectModel.cpp index 65a530e7c0e..bcbfed28f32 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(iModel->GetName()); + VMAP::VMapFactory::createOrGetVMapManager()->releaseModelInstance(iModel->GetName()); } bool GameObjectModel::initialize(std::unique_ptr modelOwner, std::string const& dataPath) @@ -115,7 +115,7 @@ bool GameObjectModel::initialize(std::unique_ptr model return false; } - iModel = ((VMAP::VMapManager2*)VMAP::VMapFactory::createOrGetVMapManager())->acquireModelInstance(dataPath + "vmaps/", it->second.name); + iModel = VMAP::VMapFactory::createOrGetVMapManager()->acquireModelInstance(dataPath + "vmaps/", it->second.name); if (!iModel) return false; -- cgit v1.2.3