MAINT-5039 FIXED Viewer crashes at logout if wearing clothing textured with a local texture

meow-7.2.2
Mnikolenko ProductEngine 2015-03-31 12:51:07 +03:00
parent 3be738dc6c
commit 65e6cc6704
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ LLLocalBitmap::LLLocalBitmap(std::string filename)
LLLocalBitmap::~LLLocalBitmap()
{
// replace IDs with defaults, if set to do so.
if(LL_LOCAL_REPLACE_ON_DEL && mValid) // fix for STORM-1837
if(LL_LOCAL_REPLACE_ON_DEL && mValid && gAgentAvatarp) // fix for STORM-1837
{
replaceIDs(mWorldID, IMG_DEFAULT);
LLLocalBitmapMgr::doRebake();