diff --git a/indra/newview/chatbar_as_cmdline.cpp b/indra/newview/chatbar_as_cmdline.cpp index 1a6370d233..319a969fe6 100644 --- a/indra/newview/chatbar_as_cmdline.cpp +++ b/indra/newview/chatbar_as_cmdline.cpp @@ -467,8 +467,12 @@ bool cmd_line_chat(std::string revised_text, EChatType type, bool from_gesture) if(command == std::string(sFSCmdLinePos)) { F32 x, y, z; - if (i >> x && i >> y && i >> z) + if (i >> x && i >> y) { + if (!(i >> z)) + { + z = gAgent.getPositionGlobal().mdV[VZ]; + } LLViewerRegion* agentRegionp = gAgent.getRegion(); if (agentRegionp) {