diff options
Diffstat (limited to 'src/libs/client/DeprecatedLoader.cpp')
-rw-r--r-- | src/libs/client/DeprecatedLoader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/client/DeprecatedLoader.cpp b/src/libs/client/DeprecatedLoader.cpp index f6c07ecd..9cff9422 100644 --- a/src/libs/client/DeprecatedLoader.cpp +++ b/src/libs/client/DeprecatedLoader.cpp @@ -258,7 +258,8 @@ DeprecatedLoader::load_patch(const Glib::ustring& filename, if (pm->name() == "default") { list<ControlModel>::const_iterator i = pm->controls().begin(); for ( ; i != pm->controls().end(); ++i) { - _engine->set_port_value(i->port_path(), i->value()); + const float value = i->value(); + _engine->set_port_value(i->port_path(), sizeof(float), &value); } } else { cerr << "WARNING: Unknown preset: \"" << pm->name() << endl; |