Commit 973047af authored by nanahira's avatar nanahira

add a count number to subgroup key

parent 4718355a
...@@ -2010,7 +2010,7 @@ function Auxiliary.GetGroupKey(g) ...@@ -2010,7 +2010,7 @@ function Auxiliary.GetGroupKey(g)
math.randomseed(c:GetFieldID()+1) math.randomseed(c:GetFieldID()+1)
v=v+math.random() v=v+math.random()
end end
return v return v+#g
end end
function Auxiliary.LookupSubGroupCache(cache,sg) function Auxiliary.LookupSubGroupCache(cache,sg)
local res=cache[Auxiliary.GetGroupKey(sg)] local res=cache[Auxiliary.GetGroupKey(sg)]
......
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