diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llcharacter/llmultigesture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linden/indra/llcharacter/llmultigesture.cpp b/linden/indra/llcharacter/llmultigesture.cpp index 0a4d99a..e92fcbd 100644 --- a/linden/indra/llcharacter/llmultigesture.cpp +++ b/linden/indra/llcharacter/llmultigesture.cpp | |||
@@ -278,7 +278,7 @@ BOOL LLGestureStepAnimation::deserialize(LLDataPacker& dp) | |||
278 | 278 | ||
279 | // Apparently an earlier version of the gesture code added \r to the end | 279 | // Apparently an earlier version of the gesture code added \r to the end |
280 | // of the animation names. Get rid of it. JC | 280 | // of the animation names. Get rid of it. JC |
281 | if (mAnimName[mAnimName.length() - 1] == '\r') | 281 | if (!mAnimName.empty() && mAnimName[mAnimName.length() - 1] == '\r') |
282 | { | 282 | { |
283 | // chop the last character | 283 | // chop the last character |
284 | mAnimName.resize(mAnimName.length() - 1); | 284 | mAnimName.resize(mAnimName.length() - 1); |