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

Closes #18251

(cherry-picked from d4f8d41d08)
This commit is contained in:
ForesterDev
2017-01-13 17:27:53 +04:00
committed by Shauren
parent 9e021c105f
commit f2950f851e

View File

@@ -2237,7 +2237,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)))