Remove clamp macro
Doesn't really need to exist since all it's doing is inlining std::clamp.
This commit is contained in:
+1
-1
@@ -157,7 +157,7 @@ void ModIconRow::SetFromGameState()
|
||||
{
|
||||
RString sOption = vsOptions[i];
|
||||
int iPreferredCol = OptionToPreferredColumn( sOption );
|
||||
iPreferredCol = clamp( iPreferredCol, 0, (int)m_vpModIcon.size()-1 );
|
||||
iPreferredCol = std::clamp( iPreferredCol, 0, (int)m_vpModIcon.size()-1 );
|
||||
|
||||
// search for a vacant spot
|
||||
for( int j=iPreferredCol; j<NUM_OPTION_ICONS; j++ )
|
||||
|
||||
Reference in New Issue
Block a user