Checker: NULL_RETURNS
Function: LLFloaterWorldMap::friendsChanged()
File: /indra/newview/llfloaterworldmap.cpp

actually the logic looks a bit suspicious (esp for isGodLike) but I've preserved it.
meow-7.2.2
Tofu Linden 2010-02-15 17:43:02 +00:00
parent 1ce4089fe7
commit be03975a94
1 changed files with 5 additions and 2 deletions

View File

@ -788,8 +788,11 @@ void LLFloaterWorldMap::friendsChanged()
if(avatar_id.notNull())
{
LLCtrlSelectionInterface *iface = childGetSelectionInterface("friend combo");
if(!iface || !iface->setCurrentByID(avatar_id) ||
!t.getBuddyInfo(avatar_id)->isRightGrantedFrom(LLRelationship::GRANT_MAP_LOCATION) || gAgent.isGodlike())
LLRelationship* buddy_info = t.getBuddyInfo(avatar_id);
if(!iface ||
!iface->setCurrentByID(avatar_id) ||
(buddy_info && !buddy_info->isRightGrantedFrom(LLRelationship::GRANT_MAP_LOCATION)) ||
gAgent.isGodlike())
{
LLTracker::stopTracking(NULL);
}