Core/Misc: Fix static analysis issues

Fix some static analysis issues reported by Coverity

(cherry picked from commit 89c535cf2a)

Conflicts:
	src/server/game/Entities/Player/Player.cpp
This commit is contained in:
jackpoz
2015-01-30 22:32:26 +01:00
committed by Nayd
parent 13cbed36ef
commit 7b05b0cb81
2 changed files with 7 additions and 1 deletions

View File

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