diff options
-rw-r--r-- | linden/indra/newview/llagent.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/newview/llagent.cpp b/linden/indra/newview/llagent.cpp index c44fe3a..532b777 100644 --- a/linden/indra/newview/llagent.cpp +++ b/linden/indra/newview/llagent.cpp | |||
@@ -471,9 +471,11 @@ void LLAgent::cleanup() | |||
471 | 471 | ||
472 | setSitCamera(LLUUID::null); | 472 | setSitCamera(LLUUID::null); |
473 | 473 | ||
474 | mAvatarObject->markDead(); | 474 | if (mAvatarObject) |
475 | 475 | { | |
476 | mAvatarObject = NULL; | 476 | mAvatarObject->markDead(); |
477 | mAvatarObject = NULL; | ||
478 | } | ||
477 | if(mLookAt) | 479 | if(mLookAt) |
478 | { | 480 | { |
479 | mLookAt->markDead() ; | 481 | mLookAt->markDead() ; |