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.
This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2019-03-15 23:17:59 +01:00
parent 3300ba4d33
commit 3cac828a3e

View File

@ -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;