From 3cac828a3ea54f3cb06883ea675623f66e3811bd Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Fri, 15 Mar 2019 23:17:59 +0100 Subject: [PATCH] libobs: Fix obs_property_float_set_limits This function incorrectly checked for an Integer type instead of a Float type, causing it to do nothing. --- libobs/obs-properties.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs/obs-properties.c b/libobs/obs-properties.c index 615882bb2..74459f55c 100644 --- a/libobs/obs-properties.c +++ b/libobs/obs-properties.c @@ -789,7 +789,7 @@ void obs_property_int_set_limits(obs_property_t *p, void obs_property_float_set_limits(obs_property_t *p, double min, double max, double step) { - struct float_data *data = get_type_data(p, OBS_PROPERTY_INT); + struct float_data *data = get_type_data(p, OBS_PROPERTY_FLOAT); if (!data) return;