summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2024-08-15 15:56:53 +0200
committerGuru <alexandrgproductengine@lindenlab.com>2024-08-15 16:56:21 +0200
commit3ca4bb6bf7ba1367e06705da3968174ff9448d7d (patch)
treea3ac13c27567f32da4330a0886446d3f7730bc4f /indra/newview
parent182f4c69c2d9c233b7ec223c3476f2e191993fad (diff)
#2307 BugSplat Crash #1504734: LLViewerTexture::getNumFaces()
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewertexture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp
index 9aee1c0caf..03dca1e5f3 100644
--- a/indra/newview/llviewertexture.cpp
+++ b/indra/newview/llviewertexture.cpp
@@ -834,7 +834,7 @@ S32 LLViewerTexture::getTotalNumFaces() const
S32 LLViewerTexture::getNumFaces(U32 ch) const
{
llassert(ch < LLRender::NUM_TEXTURE_CHANNELS);
- return mNumFaces[ch];
+ return ch < LLRender::NUM_TEXTURE_CHANNELS ? mNumFaces[ch] : 0;
}