Checker: NULL_RETURNS
Function: LLAgentWearables::revertWearable(LLWearableType::EType, unsigned int)
File: /indra/newview/llagentwearables.cpp
meow-7.2.2
Tofu Linden 2010-07-06 11:20:05 +01:00
parent 86da02f7d2
commit 99e7e72507
1 changed files with 5 additions and 1 deletions

View File

@ -511,7 +511,11 @@ void LLAgentWearables::saveWearableAs(const LLWearableType::EType type,
void LLAgentWearables::revertWearable(const LLWearableType::EType type, const U32 index)
{
LLWearable* wearable = getWearable(type, index);
wearable->revertValues();
llassert(wearable);
if (wearable)
{
wearable->revertValues();
}
gAgent.sendAgentSetAppearance();
}