summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Beck <wolfgang.beck@nokia.com>2011-12-15 10:12:38 +1000
committerQt by Nokia <qt-info@nokia.com>2011-12-15 01:33:13 +0100
commit7faad646eb9bdef20de4dd847e4ec048a5eed828 (patch)
tree6d1fe4f9f99f8273c0b2c74b6874f570e5928779
parenteac9c4e70043c0e2723d53ce397c6aa3f79b9a28 (diff)
Grue example doesn't stop counting when reaches 100
Change-Id: I8dfc97897e4d42b657b55ab3e3d734556313c48b Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
-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();
}