summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/primitives.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/primitives.cc b/src/primitives.cc
index 9fea2e9..522fc62 100644
--- a/src/primitives.cc
+++ b/src/primitives.cc
@@ -121,7 +121,7 @@ AbstractNode *PrimitiveModule::evaluate(const Context *ctx, const ModuleInstanti
Value r, r1, r2;
r1 = c.lookup_variable("r1");
r2 = c.lookup_variable("r2");
- if (r1.type != Value::NUMBER && r1.type != Value::NUMBER)
+ if (r1.type != Value::NUMBER && r2.type != Value::NUMBER)
r = c.lookup_variable("r");
Value center = c.lookup_variable("center");
if (h.type == Value::NUMBER) {
contact: Jan Huwald // Impressum