diff --git a/libnymea-core/scriptengine/scriptstate.cpp b/libnymea-core/scriptengine/scriptstate.cpp index 12001abe..f3445e1e 100644 --- a/libnymea-core/scriptengine/scriptstate.cpp +++ b/libnymea-core/scriptengine/scriptstate.cpp @@ -206,7 +206,7 @@ QVariant ScriptState::maximumValue() const if (stateType.id().isNull()) { stateType = thing->thingClass().stateTypes().findByName(m_stateName); } - return stateType.minValue(); + return stateType.maxValue(); } void ScriptState::store()