diff --git a/indra/newview/llfloateravatarlist.cpp b/indra/newview/llfloateravatarlist.cpp index c5783c322..5517d7df0 100644 --- a/indra/newview/llfloateravatarlist.cpp +++ b/indra/newview/llfloateravatarlist.cpp @@ -347,18 +347,6 @@ void track_av(const LLUUID& id) LLTracker::trackLocation(avatars[id], LLStringUtil::null, LLStringUtil::null); } -void teleport_to(const LLUUID& id) -{ - if (auto entry = LLFloaterAvatarList::instanceExists() ? LLFloaterAvatarList::instance().getAvatarEntry(id) : nullptr) - gAgent.teleportViaLocation(entry->getPosition()); - else - { - LLWorld::pos_map_t avatars; - LLWorld::instance().getAvatars(&avatars); - gAgent.teleportViaLocation(avatars[id]); - } -} - static void cmd_profile(const LLAvatarListEntry* entry); static void cmd_toggle_mark(LLAvatarListEntry* entry); static void cmd_ar(const LLAvatarListEntry* entry); @@ -416,7 +404,7 @@ namespace { bool handleEvent(LLPointer event, const LLSD& userdata) { - teleport_to(LFIDBearer::getActiveSelectedID()); + gAgent.teleportViaLocation(get_av_pos(LFIDBearer::getActiveSelectedID())); return true; } };