diff options
Diffstat (limited to 'sp/src/vgui2/vgui_controls/RichText.cpp')
| -rw-r--r-- | sp/src/vgui2/vgui_controls/RichText.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sp/src/vgui2/vgui_controls/RichText.cpp b/sp/src/vgui2/vgui_controls/RichText.cpp index 8d28c4ee..66802324 100644 --- a/sp/src/vgui2/vgui_controls/RichText.cpp +++ b/sp/src/vgui2/vgui_controls/RichText.cpp @@ -748,9 +748,12 @@ void RichText::Paint() _currentTextClickable = m_CachedRenderState.textClickable; renderState.textClickable = _currentTextClickable; - renderState.textColor = m_FormatStream[renderState.formatStreamIndex].color; + + if ( m_FormatStream.IsValidIndex( renderState.formatStreamIndex ) ) + renderState.textColor = m_FormatStream[renderState.formatStreamIndex].color; + CalculateFade( renderState ); - + renderState.formatStreamIndex++; if ( _currentTextClickable ) |