From 281c76205c686e10ffe6541b24fd1c9c08e2ae18 Mon Sep 17 00:00:00 2001 From: cim Date: Wed, 27 Nov 2013 21:19:31 +0000 Subject: [PATCH] Flasher frequency can be == 0 --- src/Core/Scripting/OOJSFlasher.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Scripting/OOJSFlasher.m b/src/Core/Scripting/OOJSFlasher.m index 9e101750..eafb6ddc 100644 --- a/src/Core/Scripting/OOJSFlasher.m +++ b/src/Core/Scripting/OOJSFlasher.m @@ -227,7 +227,7 @@ static JSBool FlasherSetProperty(JSContext *context, JSObject *this, jsid propID case kFlasher_frequency: if (JS_ValueToNumber(context, *value, &fValue)) { - if (fValue > 0.0) + if (fValue >= 0.0) { [entity setFrequency:fValue]; return YES;