Skip to content
Snippets Groups Projects
Commit a6295b82 authored by Drake Arconis's avatar Drake Arconis
Browse files

Fix a code silly.

parent b89192b9
No related branches found
No related tags found
No related merge requests found
...@@ -1339,8 +1339,7 @@ void LLAvatarActions::teleportTo(const LLUUID& avatar_id) ...@@ -1339,8 +1339,7 @@ void LLAvatarActions::teleportTo(const LLUUID& avatar_id)
if (avatar_id.isNull()) if (avatar_id.isNull())
return; return;
typedef boost::unordered_map<LLUUID, LLVector3d> pos_map_t; boost::unordered_map<LLUUID, LLVector3d> positions;
pos_map_t positions;
LLWorld::getInstance()->getAvatars(&positions, gAgent.getPositionGlobal(), 4096.f); LLWorld::getInstance()->getAvatars(&positions, gAgent.getPositionGlobal(), 4096.f);
auto iter = positions.find(avatar_id); auto iter = positions.find(avatar_id);
if (iter != positions.cend()) if (iter != positions.cend())
...@@ -1360,8 +1359,7 @@ bool LLAvatarActions::canTeleportTo(const LLUUID& avatar_id) ...@@ -1360,8 +1359,7 @@ bool LLAvatarActions::canTeleportTo(const LLUUID& avatar_id)
if (avatar_id.isNull()) if (avatar_id.isNull())
return false; return false;
typedef boost::unordered_map<LLUUID, LLVector3d> pos_map_t; boost::unordered_map<LLUUID, LLVector3d> positions;
pos_map_t positions;
LLWorld::getInstance()->getAvatars(&positions, gAgent.getPositionGlobal(), 4096.f); LLWorld::getInstance()->getAvatars(&positions, gAgent.getPositionGlobal(), 4096.f);
auto iter = positions.find(avatar_id); auto iter = positions.find(avatar_id);
if (iter != positions.cend()) if (iter != positions.cend())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment