diff options
-rw-r--r-- | examples/sensors/grue/plugin/gruesensorimpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/sensors/grue/plugin/gruesensorimpl.cpp b/examples/sensors/grue/plugin/gruesensorimpl.cpp index 134cd88..d06ab8e 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(); } |