mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 19:37:01 +00:00
[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:
parent
b03443c425
commit
49bd484a41
6 changed files with 23 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue