summaryrefslogtreecommitdiff
path: root/indra/newview/llavataractions.cpp
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2011-07-08 16:06:49 -0700
committerLeyla Farazha <leyla@lindenlab.com>2011-07-08 16:06:49 -0700
commitd7318bf9f07c1b043a9b4f50ce38b78eb3985e36 (patch)
tree80575768d0636caaa93b63bc5d39cafa6b21cf83 /indra/newview/llavataractions.cpp
parent5edd6b606b9bc011c64c890200a9fb54072e9fde (diff)
parent0553d47045e65a0249ec7ee514078161a4bec97e (diff)
merge
Diffstat (limited to 'indra/newview/llavataractions.cpp')
-rw-r--r--indra/newview/llavataractions.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llavataractions.cpp b/indra/newview/llavataractions.cpp
index 4685865bce..8344b08bfb 100644
--- a/indra/newview/llavataractions.cpp
+++ b/indra/newview/llavataractions.cpp
@@ -794,6 +794,10 @@ bool LLAvatarActions::canOfferTeleport(const LLUUID& id)
// static
bool LLAvatarActions::canOfferTeleport(const uuid_vec_t& ids)
{
+ // We can't send more than 250 lures in a single message, so disable this
+ // button when there are too many id's selected.
+ if(ids.size() > 250) return false;
+
bool result = true;
for (uuid_vec_t::const_iterator it = ids.begin(); it != ids.end(); ++it)
{