Skip to content
Snippets Groups Projects
Commit 0271b108 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix undefined behavior in LLPrimTextureList::copyTexture as a const& should never be null

parent 82545a81
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,7 @@ S32 LLPrimTextureList::copyTexture(const U8 index, const LLTextureEntry& te)
// we're changing an existing entry
llassert(mEntryList[index]);
delete (mEntryList[index]);
if (&te)
if (te != LLTextureEntry::null)
{
mEntryList[index] = te.newCopy();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment