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

Closes #18251
This commit is contained in:
ForesterDev authored and Aokromes committed 2017-01-14 06:45:23 +01:00
1 parent 72dc4be1f4
commit 4ef8cda0d2
1 file changed
+1 -1
+1 -1
View File
@@ -1902,7 +1902,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)))