Core/Utils: Added helper function to make creating unique_ptr with custom deleters more convenient

# Conflicts:
#	src/server/game/World/World.cpp
This commit is contained in:
Shauren authored and Ovahlord committed 2022-06-19 21:42:45 +02:00
1 parent fc0dc939ba
commit 8733f6fafa
3 files changed
+53 -5

No files matched your search

+1 -2
View File
@@ -41,7 +41,7 @@
#include "DatabaseEnv.h"
#include "DBCStores.h"
#include "DB2Stores.h"
#include "DBCStores.h"
#include "DetourMemoryFunctions.h"
#include "DisableMgr.h"
#include "GameEventMgr.h"
#include "GameObjectModel.h"
@@ -60,7 +60,6 @@
#include "LootMgr.h"
#include "M2Stores.h"
#include "MapManager.h"
#include "Memory.h"
#include "Metric.h"
#include "MMapFactory.h"
#include "ObjectAccessor.h"
@@ -1,7 +1,7 @@
#ifndef _MEMORY_H
#define _MEMORY_H
#ifndef TRINITY_DETOUR_MEMORY_FUNCTIONS_H
#define TRINITY_DETOUR_MEMORY_FUNCTIONS_H
#include "DetourAlloc.h"
@@ -16,4 +16,4 @@ inline void dtCustomFree(void* ptr)
delete [] (unsigned char*)ptr;
}
#endif
#endif // TRINITY_DETOUR_MEMORY_FUNCTIONS_H