Core/Chat: properly prevent crashes + cleaning (import from TrinityCore)

- Closes #111
This commit is contained in:
ShinDarth
2016-08-24 01:14:28 +02:00
parent 17061cbbb4
commit d538b86a47
5 changed files with 16 additions and 11 deletions

View File

@@ -29,4 +29,10 @@ namespace Trinity
#define ASSERT WPAssert
template <typename T> inline T* ASSERT_NOTNULL(T* pointer)
{
ASSERT(pointer);
return pointer;
}
#endif