Fix crash then using tp2 command line option using own avatar ID as target

meow-7.2.2
Ansariel 2018-03-27 22:39:55 +02:00
parent c5e50c9e42
commit cccf128895
1 changed files with 1 additions and 1 deletions

View File

@ -1708,7 +1708,7 @@ LLUUID cmdline_partial_name2key(std::string partial_name)
void cmdline_tp2name(const std::string& target)
{
LLUUID avkey = cmdline_partial_name2key(target);
if (avkey.notNull())
if (avkey.notNull() && avkey != gAgentID)
{
LLAvatarActions::teleportTo(avkey);
}