diff options
| author | Hecklezz <tj8@live.com.au> | 2025-11-13 15:55:28 +1000 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-11-13 10:18:19 +0200 |
| commit | 4b78edbd1cd62b34f0b3f2b98ab4398437c6bc4d (patch) | |
| tree | 7991f317f145497df96b97e63364e4324ef5b1d0 /indra/newview/llface.h | |
| parent | 516a3d0dae7117068175df925ec2216430350b76 (diff) | |
Follow-up null checks on mVObjp to prevent crashes
Signed-off-by: Hecklezz <tj8@live.com.au>
Diffstat (limited to 'indra/newview/llface.h')
| -rw-r--r-- | indra/newview/llface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llface.h b/indra/newview/llface.h index 65637fbf85..db18f6643e 100644 --- a/indra/newview/llface.h +++ b/indra/newview/llface.h @@ -127,7 +127,7 @@ public: void setIndexInTex(U32 ch, S32 index) { llassert(ch < LLRender::NUM_TEXTURE_CHANNELS); mIndexInTex[ch] = index; } void setWorldMatrix(const LLMatrix4& mat); - const LLTextureEntry* getTextureEntry() const { return mVObjp->getTE(mTEOffset); } + const LLTextureEntry* getTextureEntry() const { return mVObjp ? mVObjp->getTE(mTEOffset) : nullptr; } LLFacePool* getPool() const { return mDrawPoolp; } U32 getPoolType() const { return mPoolType; } |
