diff options
Diffstat (limited to 'linden/indra/newview/llfasttimerview.cpp')
-rw-r--r-- | linden/indra/newview/llfasttimerview.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/linden/indra/newview/llfasttimerview.cpp b/linden/indra/newview/llfasttimerview.cpp index c469d8c..c7be3aa 100644 --- a/linden/indra/newview/llfasttimerview.cpp +++ b/linden/indra/newview/llfasttimerview.cpp | |||
@@ -1108,6 +1108,15 @@ F64 LLFastTimerView::getTime(LLFastTimer::EFastTimerType tidx) | |||
1108 | break; | 1108 | break; |
1109 | } | 1109 | } |
1110 | } | 1110 | } |
1111 | |||
1112 | if (i == FTV_DISPLAY_NUM) | ||
1113 | { | ||
1114 | // walked off the end of ft_display_table without finding | ||
1115 | // the desired timer type | ||
1116 | llwarns << "Timer type " << tidx << " not known." << llendl; | ||
1117 | return F64(0.0); | ||
1118 | } | ||
1119 | |||
1111 | S32 table_idx = i; | 1120 | S32 table_idx = i; |
1112 | 1121 | ||
1113 | // Add child ticks to parent | 1122 | // Add child ticks to parent |