[11922] Add ASSERT helper function to print entry and guid info

Use this in first cases: GetAngle and in PathFinder::BuildPolyPath

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
Schmoozerd 2012-02-07 17:24:24 +01:00
parent b03443c425
commit 49bd484a41
6 changed files with 23 additions and 11 deletions

View file

@ -942,6 +942,9 @@ void GameObject::SwitchDoorOrButton(bool activate, bool alternative /* = false *
void GameObject::Use(Unit* user)
{
// user must be provided
MANGOS_ASSERT(user || PrintEntryError("GameObject::Use (without user)"));
// by default spell caster is user
Unit* spellCaster = user;
uint32 spellId = 0;