From 54970403c4b6e6eaf580c6e3767e550fdfb6084a Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sat, 30 May 2015 15:41:52 +0200 Subject: [PATCH] Prevent adding null wearables --- indra/llappearance/llwearabledata.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indra/llappearance/llwearabledata.cpp b/indra/llappearance/llwearabledata.cpp index e3891486be..0cfdd91873 100755 --- a/indra/llappearance/llwearabledata.cpp +++ b/indra/llappearance/llwearabledata.cpp @@ -100,6 +100,8 @@ void LLWearableData::pushWearable(const LLWearableType::EType type, { // no null wearables please! LL_WARNS() << "Null wearable sent for type " << type << LL_ENDL; + // Prevent adding null wearables + return; } if (canAddWearable(type)) {