From ca2b3b3d15ac1613d009248b28a126b48ea6b11b Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 21 Dec 2008 15:15:48 -0600 Subject: *Fix broken stealth. --HG-- branch : trunk --- src/game/Unit.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 48cda18893d..e956557ff2a 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -9982,7 +9982,10 @@ void Unit::SetVisibility(UnitVisibility x) VisitNearbyWorldObject(World::GetMaxVisibleDistance(), searcher); for(std::list::iterator iter = targets.begin(); iter != targets.end(); ++iter) if((*iter)->GetTypeId() == TYPEID_PLAYER) + { + DestroyForPlayer((Player*)(*iter)); ((Player*)(*iter))->m_clientGUIDs.erase(GetGUID()); + } } /*{ Map *m = GetMap(); -- cgit v1.2.3