Core/Objects: Fixed trap visibility for enemies. (#18815)

Closes #18251
This commit is contained in:
ForesterDev
2017-01-13 17:27:53 +04:00
committed by Shauren
parent 4572986f25
commit d4f8d41d08

View File

@@ -1715,7 +1715,7 @@ bool WorldObject::CanDetectStealthOf(WorldObject const* obj, bool checkAlert) co
if (!HasInArc(float(M_PI), obj))
return false;
GameObject const* go = ToGameObject();
GameObject const* go = obj->ToGameObject();
for (uint32 i = 0; i < TOTAL_STEALTH_TYPES; ++i)
{
if (!(obj->m_stealth.GetFlags() & (1 << i)))