From a964da41f71f97e2bdaf2b8170d10205e6c5e3ae Mon Sep 17 00:00:00 2001 From: Jan Boon Date: Mon, 16 Dec 2019 12:16:59 +0800 Subject: [PATCH] Various fixes or adjustments --- code/ryzom/common/data_common/r2/r2_ui_property_sheet.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ryzom/common/data_common/r2/r2_ui_property_sheet.lua b/code/ryzom/common/data_common/r2/r2_ui_property_sheet.lua index 9f856dd23..65f351d4a 100644 --- a/code/ryzom/common/data_common/r2/r2_ui_property_sheet.lua +++ b/code/ryzom/common/data_common/r2/r2_ui_property_sheet.lua @@ -960,11 +960,11 @@ r2.WidgetStyles.Number = local prop = r2:getPropertyDefinition('%s', getUICaller()) assert(prop) local clamped = false - if prop.Min and newValue < tonumber(prop.Min) then + if prop.Min and newValue < tonumber(prop.Min) then newValue = tonumber(prop.Min) clamped = true end - if prop.Max and newValue > tonumber(prop.Max) then + if prop.Max and newValue > tonumber(prop.Max) then newValue = tonumber(prop.Max) clamped = true end