From cccf1288956346da55a1ecb5cbd58430d4b71e35 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Tue, 27 Mar 2018 22:39:55 +0200 Subject: [PATCH] Fix crash then using tp2 command line option using own avatar ID as target --- indra/newview/chatbar_as_cmdline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/chatbar_as_cmdline.cpp b/indra/newview/chatbar_as_cmdline.cpp index 9e6a86afeb..84b0515e90 100644 --- a/indra/newview/chatbar_as_cmdline.cpp +++ b/indra/newview/chatbar_as_cmdline.cpp @@ -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); }