Core/Auras: Add some asserions to hunt down reason of a crash in Aura::UpdateTargetMap. Thanks to Shauren for inspiration.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-12-26 00:14:13 +01:00
parent f5492f82b5
commit f4e46db38a
3 changed files with 9 additions and 4 deletions
@@ -1321,7 +1321,7 @@ void GameObject::Use(Unit* user)
if (user->GetTypeId() != TYPEID_PLAYER)
return;
Player* player = (Player*)user;
Player* player = user->ToPlayer();
Unit* owner = GetOwner();