summaryrefslogtreecommitdiffstats
path: root/examples/sensors
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sensors')
-rw-r--r--examples/sensors/grue/plugin/gruesensorimpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/sensors/grue/plugin/gruesensorimpl.cpp b/examples/sensors/grue/plugin/gruesensorimpl.cpp
index 134cd88e..d06ab8ee 100644
--- a/examples/sensors/grue/plugin/gruesensorimpl.cpp
+++ b/examples/sensors/grue/plugin/gruesensorimpl.cpp
@@ -129,7 +129,7 @@ void gruesensorimpl::increaseChance()
// No point in using the timer anymore if we've hit 1... you can't get more
// likely to be eaten than 100%
- if (chance == 1.0)
+ if (chance >= 1.0)
darkTimer->stop();
}