Browse Source

Follow-up to f14f4ee0, use correct struct member

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Joachim Nilsson 5 years ago
parent
commit
215dbcdeec
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/light.c

+ 2
- 2
src/light.c View File

961
     // Check that we actually de/increase value
961
     // Check that we actually de/increase value
962
     if(value == old_value)
962
     if(value == old_value)
963
     {
963
     {
964
-        if(ctx->runs_params.float_value > 1)
964
+        if(ctx->run_params.float_value > 1)
965
             value++;
965
             value++;
966
-        if(ctx->runs_params.float_value < 1 && value > 0)
966
+        if(ctx->run_params.float_value < 1 && value > 0)
967
             value--;
967
             value--;
968
     }
968
     }
969
 
969