SL-20366 Crash at setTETextureCore

meow-7.2.2
Andrey Kleshchev 2023-09-29 00:41:47 +03:00
parent ee07a128b1
commit cd32a40195
1 changed files with 1 additions and 1 deletions

View File

@ -4933,7 +4933,7 @@ void LLViewerObject::setTEImage(const U8 te, LLViewerTexture *imagep)
S32 LLViewerObject::setTETextureCore(const U8 te, LLViewerTexture *image)
{
LLUUID old_image_id = getTE(te)->getID();
const LLUUID& uuid = image->getID();
const LLUUID& uuid = image ? image->getID() : LLUUID::null;
S32 retval = 0;
if (uuid != getTE(te)->getID() ||
uuid == LLUUID::null)