summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-07-06 11:21:45 +0100
committerTofu Linden <tofu.linden@lindenlab.com>2010-07-06 11:21:45 +0100
commite04df15bf1280d29f998a18bbb326f4bfa991f69 (patch)
treee1bad562000ca2b8143854602f15ec513048e17a /indra
parent99e7e725072c8682f2de2eeb13d93181357d6a03 (diff)
CID-484
Checker: NULL_RETURNS Function: LLAgentWearables::animateAllWearableParams(float, int) File: /indra/newview/llagentwearables.cpp
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llagentwearables.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llagentwearables.cpp b/indra/newview/llagentwearables.cpp
index 6acbc16018..266aaaff4a 100644
--- a/indra/newview/llagentwearables.cpp
+++ b/indra/newview/llagentwearables.cpp
@@ -1944,7 +1944,11 @@ void LLAgentWearables::animateAllWearableParams(F32 delta, BOOL upload_bake)
for (S32 count = 0; count < (S32)getWearableCount((LLWearableType::EType)type); ++count)
{
LLWearable *wearable = getWearable((LLWearableType::EType)type,count);
- wearable->animateParams(delta, upload_bake);
+ llassert(wearable);
+ if (wearable)
+ {
+ wearable->animateParams(delta, upload_bake);
+ }
}
}
}