mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 00:08:53 -05:00
Fix: wrong type conversion
This commit is contained in:
parent
a509a7ba83
commit
da317bcaff
@ -134,8 +134,8 @@ namespace Alchemy.Editor.Elements
|
||||
control.value = (long)value;
|
||||
control.RegisterValueChangedCallback(x =>
|
||||
{
|
||||
var newValue = (long)Math.Clamp(control.value, 0, long.MaxValue);
|
||||
OnValueChanged?.Invoke(newValue);
|
||||
var newValue = Math.Clamp(control.value, 0, long.MaxValue);
|
||||
OnValueChanged?.Invoke((ulong)newValue);
|
||||
control.value = newValue;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user