diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-04-19 14:22:05 +0100 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-04-19 14:22:05 +0100 |
commit | 532d732645f2369d17eba9c2ed0d594b486d416e (patch) | |
tree | da6d4ab55e646420c54d277e9298434125122739 /indra/newview/llmoveview.cpp | |
parent | fbc2064962e72a3ab9232c8a1b939c6a290027bf (diff) | |
parent | 2336188eeda9d074282886c610c918328e563fb7 (diff) |
merge from viewer-hotfix
Diffstat (limited to 'indra/newview/llmoveview.cpp')
-rw-r--r-- | indra/newview/llmoveview.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llmoveview.cpp b/indra/newview/llmoveview.cpp index 0ddc4efc81..7df5a33313 100644 --- a/indra/newview/llmoveview.cpp +++ b/indra/newview/llmoveview.cpp @@ -200,7 +200,11 @@ void LLFloaterMove::setFlyingMode(BOOL fly) if (instance) { instance->setFlyingModeImpl(fly); - BOOL is_sitting = isAgentAvatarValid() && gAgentAvatarp->isSitting(); + LLVOAvatarSelf* avatar_object = gAgent.getAvatarObject(); + bool is_sitting = avatar_object + && (avatar_object->getRegion() != NULL) + && (!avatar_object->isDead()) + && avatar_object->isSitting(); instance->showModeButtons(!fly && !is_sitting); } if (fly) |