aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llframestatview.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:04 -0500
committerJacek Antonelli2008-08-15 23:45:04 -0500
commit117e22047c5752352342d64e3fb7ce00a4eb8113 (patch)
treee32de2cfba0dda8705ae528fcd1fbe23ba075685 /linden/indra/newview/llframestatview.cpp
parentSecond Life viewer sources 1.18.0.6 (diff)
downloadmeta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.zip
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.gz
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.bz2
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.xz
Second Life viewer sources 1.18.1.2
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;