aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermessage.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewermessage.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp
index f79730b..f6cefce 100644
--- a/linden/indra/newview/llviewermessage.cpp
+++ b/linden/indra/newview/llviewermessage.cpp
@@ -539,9 +539,9 @@ void process_places_reply(LLMessageSystem* msg, void** data)
539 539
540void send_sound_trigger(const LLUUID& sound_id, F32 gain) 540void send_sound_trigger(const LLUUID& sound_id, F32 gain)
541{ 541{
542 if (sound_id.isNull()) 542 if (sound_id.isNull() || gAgent.getRegion() == NULL)
543 { 543 {
544 // zero guids don't get sent (no sound) 544 // disconnected agent or zero guids don't get sent (no sound)
545 return; 545 return;
546 } 546 }
547 547
@@ -861,7 +861,9 @@ void open_offer(const std::vector<LLUUID>& items, const std::string& from_name)
861 } 861 }
862 862
863 if(gSavedSettings.getBOOL("ShowInInventory") && 863 if(gSavedSettings.getBOOL("ShowInInventory") &&
864 asset_type != LLAssetType::AT_CALLINGCARD) 864 asset_type != LLAssetType::AT_CALLINGCARD &&
865 item->getInventoryType() != LLInventoryType::IT_ATTACHMENT &&
866 !from_name.empty())
865 { 867 {
866 LLInventoryView::showAgentInventory(TRUE); 868 LLInventoryView::showAgentInventory(TRUE);
867 } 869 }