Commit 248f5554 authored by nanahira's avatar nanahira

fix

parent 86dc7967
...@@ -167,7 +167,7 @@ function cm.SelectGroupNew(tp,desc,cancelable,g,f,cg,min,max,...) ...@@ -167,7 +167,7 @@ function cm.SelectGroupNew(tp,desc,cancelable,g,f,cg,min,max,...)
local seg=sg:Clone() local seg=sg:Clone()
seg:Sub(cg) seg:Sub(cg)
local finish=(#sg>=min and #sg<=max and f(sg,...)) local finish=(#sg>=min and #sg<=max and f(sg,...))
local cancel=finish or (cancelable and #seg==0) local cancel=cancelable and not finish
local dmin=#sg local dmin=#sg
local dmax=math.min(max,#g) local dmax=math.min(max,#g)
local tc=nil local tc=nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment