Core/Misc: Fix assertion triggered
Change an assertion added in 6dcd8c8545 with a NULL check, properly handling the case of a NULL parameter.
Fixes #11771
This commit is contained in:
1 parent
ed801e3455
commit
5570e32d0e
2 files changed
+2
-1
No files matched your search
@@ -1034,7 +1034,6 @@ void GameObject::TriggeringLinkedGameObject(uint32 trapEntry, Unit* target)
|
||||
if (!trapSpell) // checked at load already
|
||||
return;
|
||||
|
||||
ASSERT(GetOwner());
|
||||
float range = float(target->GetSpellMaxRangeForTarget(GetOwner(), trapSpell));
|
||||
|
||||
// search nearest linked GO
|
||||
|
||||
Reference in new issue
Block a user