Skip to content
Snippets Groups Projects
Commit 74d28082 authored by andreykproductengine's avatar andreykproductengine
Browse files

SL-10006 Fixed crash in addScriptLine

parent bb8481de
No related branches found
No related tags found
No related merge requests found
...@@ -137,9 +137,12 @@ void LLFloaterScriptDebug::addScriptLine(const std::string &utf8mesg, const std: ...@@ -137,9 +137,12 @@ void LLFloaterScriptDebug::addScriptLine(const std::string &utf8mesg, const std:
if (objectp) if (objectp)
{ {
if(objectp->isHUDAttachment()) if(objectp->isHUDAttachment())
{
if (isAgentAvatarValid())
{ {
((LLViewerObject*)gAgentAvatarp)->setIcon(LLViewerTextureManager::getFetchedTextureFromFile("script_error.j2c", FTT_LOCAL_FILE, TRUE, LLGLTexture::BOOST_UI)); ((LLViewerObject*)gAgentAvatarp)->setIcon(LLViewerTextureManager::getFetchedTextureFromFile("script_error.j2c", FTT_LOCAL_FILE, TRUE, LLGLTexture::BOOST_UI));
} }
}
else else
{ {
objectp->setIcon(LLViewerTextureManager::getFetchedTextureFromFile("script_error.j2c", FTT_LOCAL_FILE, TRUE, LLGLTexture::BOOST_UI)); objectp->setIcon(LLViewerTextureManager::getFetchedTextureFromFile("script_error.j2c", FTT_LOCAL_FILE, TRUE, LLGLTexture::BOOST_UI));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment