summaryrefslogtreecommitdiff
path: root/src/command.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-07-16 21:36:23 +0200
committerThomas White <taw@physics.org>2019-07-16 21:36:23 +0200
commit6f0279d8dfb9db1824b2a037569e17bb0d49659a (patch)
treedcb660029d5abb0f695a3194c2b5275ecfb6bff0 /src/command.c
parent3515a370920875883f6f388ccf29a097132ab44e (diff)
Put all attribute values in a struct
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index f1387b8..f0b5b27 100644
--- a/src/command.c
+++ b/src/command.c
@@ -205,7 +205,7 @@ static void set_level(struct lightctx *nl, int val)
for ( i=0; i<nl->n_sel; i++ ) {
struct fixture *fix = &nl->fixtures[nl->selection[i]];
- fix->intensity = (float)val/100.0;
+ fix->v.intensity = (float)val/100.0;
}
}