Remove this parameter from FloatMath.Clamp.

That was a stupid idea.
This commit is contained in:
Pieter-Jan Briers
2020-08-12 21:15:26 +02:00
parent f182ff5613
commit e76003948b
5 changed files with 5 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ namespace Content.Server.Preferences
await _prefsSemaphore.WaitAsync();
try
{
index = index.Clamp(0, _maxCharacterSlots - 1);
index = FloatMath.Clamp(index, 0, _maxCharacterSlots - 1);
await _prefsDb.SaveSelectedCharacterIndex(username, index);
}
finally