aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llframestatview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llframestatview.cpp')
-rw-r--r--linden/indra/newview/llframestatview.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/linden/indra/newview/llframestatview.cpp b/linden/indra/newview/llframestatview.cpp
index af9162d..c489caa 100644
--- a/linden/indra/newview/llframestatview.cpp
+++ b/linden/indra/newview/llframestatview.cpp
@@ -378,6 +378,12 @@ void LLFrameStatView::draw()
378 378
379void LLFrameStatView::addStat(LLStat *statp, const char *label, const LLColor4 &color) 379void LLFrameStatView::addStat(LLStat *statp, const char *label, const LLColor4 &color)
380{ 380{
381 if( mNumStats >= MAX_STATS )
382 {
383 llwarns << "LLFrameStatView::addStat - too many stats!" << llendl;
384 return;
385 }
386
381 mStats[mNumStats] = statp; 387 mStats[mNumStats] = statp;
382 mColors[mNumStats] = color; 388 mColors[mNumStats] = color;
383 mLabels[mNumStats] = label; 389 mLabels[mNumStats] = label;