Skip to content

Commit

Permalink
Merge pull request #72 from BSVino/fix-linux-crash
Browse files Browse the repository at this point in the history
Fix Linux crashing after death (hotfixed 2016-06-18)
  • Loading branch information
TomyLobo authored Jun 19, 2016
2 parents a89b391 + 53bcfec commit 6ac1658
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mp/src/game/client/sdk/vgui/sdk_spectatorgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void CSDKSpectatorGUI::UpdateSpectatorPlayerList()
if ( blue )
{
wchar_t frags[ 10 ];
_snwprintf( frags, sizeof( frags ), L"%i", blue->Get_Score() );
_snwprintf( frags, sizeof( frags ) / sizeof( wchar_t ), L"%i", blue->Get_Score() );

SetLabelText( "BlueScoreValue", frags );
}
Expand All @@ -115,7 +115,7 @@ void CSDKSpectatorGUI::UpdateSpectatorPlayerList()
if ( red )
{
wchar_t frags[ 10 ];
_snwprintf( frags, sizeof( frags ), L"%i", red->Get_Score() );
_snwprintf( frags, sizeof( frags ) / sizeof( wchar_t ), L"%i", red->Get_Score() );

SetLabelText( "RedScoreValue", frags );
}
Expand Down Expand Up @@ -168,7 +168,7 @@ void CSDKSpectatorGUI::UpdateTimer()
if ( m_nLastTime < 0 )
m_nLastTime = 0;

_snwprintf ( szText, sizeof( szText ), L"%d:%02d", (m_nLastTime / 60), (m_nLastTime % 60) );
_snwprintf ( szText, sizeof( szText ) / sizeof( wchar_t ), L"%d:%02d", (m_nLastTime / 60), (m_nLastTime % 60) );
szText[62] = 0;

SetLabelText("timerlabel", szText );
Expand Down

0 comments on commit 6ac1658

Please sign in to comment.