Few nullchecks, and fixed broken logic in LLPanelAvatar::canClose()

This commit is contained in:
Shyotl
2012-05-16 12:06:05 -05:00
parent 75ef768e7f
commit bf28ce4239
2 changed files with 16 additions and 12 deletions

View File

@@ -146,7 +146,10 @@ LLViewerObject *LLViewerObject::createObject(const LLUUID &id, const LLPCode pco
}
else
{
gAgentAvatarp->updateRegion(regionp);
if (isAgentAvatarValid())
{
gAgentAvatarp->updateRegion(regionp);
}
}
res = gAgentAvatarp;
}