Ver Fonte

[fixed] devision by zero

Lusticon há 3 semanas atrás
pai
commit
bc0418d724
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      locations/femcyc.qsrc

+ 1 - 1
locations/femcyc.qsrc

@@ -628,7 +628,7 @@ if $ARGS[0] = 'cyc2':
 		cfw_idx = 0
 		cfw_sz = arrsize('wombAmount')
 		:FathLottoLoop
-		if cfw_idx < cfw_sz:
+		if cfw_idx < cfw_sz and cum_total > 0:
 			cfl_ct = (wombAmount[cfw_idx] * 100) / cum_total
 			if cfl_ct < 1: cfl_ct = 1
 			cfl_idx = arrsize('$cumfathlotto')