From 8ecbf79199888de53b286c5f200bb3542dd4611a Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Mon, 27 Aug 2018 12:27:58 -0400 Subject: [PATCH] Fix this because it shoulda been this from the start, oops. --- indra/newview/chatbar_as_cmdline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/newview/chatbar_as_cmdline.cpp b/indra/newview/chatbar_as_cmdline.cpp index c03d8424c..7021ace43 100644 --- a/indra/newview/chatbar_as_cmdline.cpp +++ b/indra/newview/chatbar_as_cmdline.cpp @@ -586,10 +586,10 @@ LLUUID cmdline_partial_name2key(std::string partial_name) std::string av_name; LLStringUtil::toLower(partial_name); LLWorld::getInstance()->getAvatars(&avatars); - auto instance = (LLFloaterAvatarList::instanceExists() ? &LLFloaterAvatarList::instance() : nullptr); + auto radar = (LLFloaterAvatarList::instanceExists() ? LLFloaterAvatarList::getInstance() : nullptr); for(const auto& id : avatars) { - if (LLAvatarListEntry* entry = instance ? instance->getAvatarEntry(id) : nullptr) + if (LLAvatarListEntry* entry = radar ? radar->getAvatarEntry(id) : nullptr) av_name = entry->getName(); else if (gCacheName->getFullName(id, av_name)); else if (LLVOAvatar* avatarp = gObjectList.findAvatar(id))