mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 08:18:51 -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.value = (long)value;
|
||||||
control.RegisterValueChangedCallback(x =>
|
control.RegisterValueChangedCallback(x =>
|
||||||
{
|
{
|
||||||
var newValue = (long)Math.Clamp(control.value, 0, long.MaxValue);
|
var newValue = Math.Clamp(control.value, 0, long.MaxValue);
|
||||||
OnValueChanged?.Invoke(newValue);
|
OnValueChanged?.Invoke((ulong)newValue);
|
||||||
control.value = newValue;
|
control.value = newValue;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user