From 46a10ebc3ea601711edfd2fd035b2e0164ba33db Mon Sep 17 00:00:00 2001 From: luboslenco Date: Tue, 9 Sep 2025 00:29:18 +0200 Subject: [PATCH] Fix ui_float_input --- base/sources/iron_ui.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/sources/iron_ui.c b/base/sources/iron_ui.c index c8b9edd1..36291140 100644 --- a/base/sources/iron_ui.c +++ b/base/sources/iron_ui.c @@ -2632,6 +2632,8 @@ void ui_rgb_to_hsv(float cr, float cg, float cb, float *out) { } float ui_float_input(ui_handle_t *handle, char *label, int align, float precision) { + char tmp[256]; + handle->text = tmp; sprintf(handle->text, "%f", round(handle->value * precision) / precision); char *text = ui_text_input(handle, label, align, true, false); handle->value = atof(text);