mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 00:08:53 -05:00
Merge pull request #60 from Akeit0/support2021
Fix: wrong type conversion
This commit is contained in:
commit
bcaeef5ea9
@ -133,8 +133,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