Improve pos of rset_create_or
[idzebra-moved-to-github.git] / rset / rsmultiandor.c
index 2ff6e23..f65039a 100644 (file)
@@ -630,7 +630,8 @@ static void r_pos_x(RSFD rfd, double *current, double *total, int and_op)
         }
         else
         {
         }
         else
         {
-            sum_cur += cur;
+            if (cur > 0)
+                sum_cur += (cur - 1);
             sum_tot += tot;
         }
     }
             sum_tot += tot;
         }
     }