uncommented releaseModelInstance to fix a warning

This commit is contained in:
Yehonal
2017-09-18 03:17:35 +02:00
parent 14f1c767ef
commit bea6f6b9fb

View File

@@ -274,7 +274,7 @@ namespace VMAP
void VMapManager2::releaseModelInstance(const std::string &filename) void VMapManager2::releaseModelInstance(const std::string &filename)
{ {
/*//! Critical section, thread safe access to iLoadedModelFiles //! Critical section, thread safe access to iLoadedModelFiles
TRINITY_GUARD(ACE_Thread_Mutex, LoadedModelFilesLock); TRINITY_GUARD(ACE_Thread_Mutex, LoadedModelFilesLock);
ModelFileMap::iterator model = iLoadedModelFiles.find(filename); ModelFileMap::iterator model = iLoadedModelFiles.find(filename);
@@ -290,7 +290,7 @@ namespace VMAP
#endif #endif
delete model->second.getModel(); delete model->second.getModel();
iLoadedModelFiles.erase(model); iLoadedModelFiles.erase(model);
}*/ }
} }
bool VMapManager2::existsMap(const char* basePath, unsigned int mapId, int x, int y) bool VMapManager2::existsMap(const char* basePath, unsigned int mapId, int x, int y)