summaryrefslogtreecommitdiffhomepage
path: root/migration
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-06-26 22:53:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-06-26 23:05:21 +0200
commit53902262040c77423591ea57ae43ab38cda655dc (patch)
treeadeb6d96449a79a779d19d04a6177f25178bd2bc /migration
parent3dc30f8e91ec3fd81c8e68a845632cd5e6a5a77b (diff)
options/value: add missing dereference operator
Diffstat (limited to 'migration')
-rw-r--r--migration/20171013_00-tracker-pt-threshold.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/20171013_00-tracker-pt-threshold.cpp b/migration/20171013_00-tracker-pt-threshold.cpp
index c9c070fa..89becb3f 100644
--- a/migration/20171013_00-tracker-pt-threshold.cpp
+++ b/migration/20171013_00-tracker-pt-threshold.cpp
@@ -43,7 +43,7 @@ struct move_int_to_slider : migration
value<int> old_val(b, old_name, 128);
value<slider_value> new_val(b, new_name, { 128, 0, 255 });
- new_val = { old_val.to<int>(), 0, 255 };
+ new_val = { *old_val, 0, 255 };
b->save();
}