Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY authored Feb 5, 2025
1 parent 8bf122b commit 0257a16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xrUICore/TrackBar/UITrackBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,11 @@ void CUITrackBar::UpdatePos()
string256 buff;
if (m_b_is_float)
{
xr_sprintf(buff, (m_static_format ? "%.1f" : m_static_format.c_str()), m_f_val);
xr_sprintf(buff, (m_static_format.empty() ? "%.1f" : m_static_format.c_str()), m_f_val);
}
else
{
xr_sprintf(buff, (m_static_format ? "%d" : m_static_format.c_str()), m_i_val);
xr_sprintf(buff, (m_static_format.empty() ? "%d" : m_static_format.c_str()), m_i_val);
}
m_static->TextItemControl()->SetTextST(buff);
}
Expand Down

0 comments on commit 0257a16

Please sign in to comment.