From 4f87697392507dc817d978abf38875fb021183c4 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 1 Feb 2021 17:00:11 +0100 Subject: [PATCH] int_setting uses min_max_value --- config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.cpp b/config.cpp index 2b4d5fbb..ccf82f8a 100644 --- a/config.cpp +++ b/config.cpp @@ -298,7 +298,7 @@ void int_setting::show_edit_option(char key) { dialog::addSelItem(XLAT(menu_item_name), its(*value), key); dialog::add_action([this] () { add_to_changed(this); - dialog::editNumber(*value, 0, 100, 1, dft, XLAT(menu_item_name), help_text); + dialog::editNumber(*value, min_value, max_value, step, dft, XLAT(menu_item_name), help_text); if(sets) sets(); if(reaction) dialog::reaction = reaction; if(extra) dialog::extra_options = extra;